[Yum-devel] [PATCH] Take a blunt hammer to --pkgnarrow=installed, not pretty but...

James Antill james at and.org
Fri Feb 1 19:39:55 UTC 2013


---
 repoquery.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/repoquery.py b/repoquery.py
index 45c6826..0d3e33c 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -1370,7 +1370,6 @@ def main(args):
         needgroup = 1
     if opts.installed:
         opts.pkgnarrow = 'installed'
-        opts.disablerepos = ['*']
 
     if opts.nevra:
         pkgops.append("nevra")
@@ -1470,6 +1469,13 @@ def main(args):
     if opts.show_dupes:
         repoq.conf.showdupesfromrepos = True
             
+
+    if opts.pkgnarrow == 'installed':
+        # Just use a blunt hammer here, to make everyone sane:
+        opts.repoid = []
+        opts.disablerepos = ['*']
+        opts.enablerepos  = []
+
     if opts.repoid:
         found_repos = set()
         for repo in repoq.repos.findRepos('*'):
-- 
1.7.6.5



More information about the Yum-devel mailing list