[yum-git] Branch 'yum-3_2_X' - cli.py
James Antill
james at linux.duke.edu
Thu Aug 14 14:03:27 UTC 2008
cli.py | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 890e0d56989d13de15c36ca21c9ade2e3a9b7573
Author: James Antill <james at and.org>
Date: Thu Aug 14 10:02:18 2008 -0400
Add comments about the previous bug, and better long term. fix
diff --git a/cli.py b/cli.py
index 7bc2042..525df1a 100644
--- a/cli.py
+++ b/cli.py
@@ -531,6 +531,11 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
_('No package %s available.'), arg)
matches = self.doPackageLists('available', patterns=[arg],
ignore_case=True)
+ # The problem here is that if this is the second time around
+ # then we've already pre-cached the results from doPackageLists
+ # to be all the available pkgs. So we need to match.
+ # FIXME: Really we should probably put this in
+ # doPackageLists() / returnPackages() when we have a pattern.
matches = matches.available
exactmatch, matched, unmatched = parsePackages(matches, [arg])
matches = yum.misc.unique(exactmatch + matched)
@@ -643,6 +648,9 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
ignore_case=True)
# This is mostly leftover from when patterns didn't exist
+ # FIXME: However when returnPackages() has already been run, we
+ # don't process teh patterns args. ... we should fix that in
+ # returnPackages() etc.
def _shrinklist(lst, args):
if len(lst) > 0 and len(args) > 0:
self.verbose_logger.log(yum.logginglevels.DEBUG_1,
More information about the Yum-cvs-commits
mailing list