[yum-commits] repoquery.py

James Antill james at osuosl.org
Wed Aug 17 19:28:57 UTC 2011


 repoquery.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit bd8f0d6471d06ce97cf294c2bca2b66fc4b8c374
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date:   Wed Aug 17 11:57:27 2011 +0200

    Fix the use of --whatrequires in combination with --output

diff --git a/repoquery.py b/repoquery.py
index a3bb111..7c6ddba 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -1261,9 +1261,10 @@ def main(args):
     if opts.srpm:
         needsource = 1
     if opts.whatrequires:
-        sackops.append("whatrequires")
         if opts.output != 'text':
             pkgops.append("tree_what_requires")
+        else:
+            sackops.append("whatrequires")
     if opts.whatprovides:
         sackops.append("whatprovides")
     if opts.whatobsoletes:


More information about the Yum-commits mailing list