Hi, When I run repoquery with the --installed option I get the help text rather than the expected list of installed packages. I was able to reproduce the problem with the latest version in git. I wrote this small patch that I believe solves the issue.
There might be better ways to solve this but this works for me. Note I tried to use the git-email but it does not support two-factor authentication so I hope it's OK if I submit the patch this way. Thanks for reviewing this and feel free to let me know if there's anything I need to keep in mind before making other suggestions. Regards Bram Bram Mertens (1): Fix command line parsing so the --installed option works as expected repoquery.py | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.3
From ed6b4454b1dd6123fb1fb5602b75d152f429beac Mon Sep 17 00:00:00 2001 From: Bram Mertens <mertensb.ma...@gmail.com> Date: Mon, 17 Aug 2015 22:45:56 +0200 Subject: [PATCH] Fix command line parsing so the --installed option works as expected --- repoquery.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repoquery.py b/repoquery.py index af70518..89d3bd4 100755 --- a/repoquery.py +++ b/repoquery.py @@ -1302,6 +1302,8 @@ def main(args): if len(regexs) < 1: if opts.all: regexs = ['*'] + elif opts.installed: + regexs = ['*'] else: print parser.format_help() sys.exit(1) -- 1.9.3
_______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel