[yum-commits] repoquery.py
James Antill
james at osuosl.org
Mon Jun 7 18:59:54 UTC 2010
repoquery.py | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
New commits:
commit a3058f1f50af79cb90a273392fc0964e907037e6
Author: James Antill <james at and.org>
Date: Mon Jun 7 14:59:40 2010 -0400
Don't pre-download filelists, often got this `wrong' with alldeps
diff --git a/repoquery.py b/repoquery.py
index 1186782..5ecf58e 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -641,7 +641,6 @@ class YumBaseQuery(yum.YumBase):
def main(args):
- needfiles = 0
needother = 0
needgroup = 0
needsource = 0
@@ -781,11 +780,7 @@ def main(args):
needother = 1
pkgops.append("changelog")
if opts.list:
- if not opts.group:
- needfiles = 1
pkgops.append("list")
- if opts.alldeps and not (opts.installed or opts.pkgnarrow == 'installed'):
- needfiles = 1
if opts.envra:
pkgops.append("envra")
if opts.nvr:
@@ -913,8 +908,9 @@ def main(args):
elif archlist is not None:
repoq.arch.archlist = archlist
- if needfiles:
- repoq.repos.populateSack(mdtype='filelists')
+ # Don't do needfiles, because yum will do it automatically and it's
+ # not trivial to get it "right" so we don't download them when not
+ # needed.
if needother:
repoq.repos.populateSack(mdtype='otherdata')
if needgroup:
More information about the Yum-commits
mailing list