[yum-commits] Branch 'yum-3_2_X' - cli.py
James Antill
james at osuosl.org
Thu Dec 4 23:06:12 UTC 2008
cli.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit ab5d8bb555facfb15702568bed9e106f2c998eb0
Author: James Antill <james at and.org>
Date: Thu Dec 4 18:06:08 2008 -0500
Make "yum update /usr/bin/yum" not produce the weird msg when no updates
diff --git a/cli.py b/cli.py
index 69dea6c..e3a4161 100644
--- a/cli.py
+++ b/cli.py
@@ -523,8 +523,9 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
# always_output is a wart due to update/remove not producing the
# same output.
matches = self.doPackageLists(patterns=[arg], ignore_case=False)
- if matches.installed: # Found a match so ignore
- return
+ if (matches.installed or (not matches.available and
+ self.returnInstalledPackagesByDep(arg))):
+ return # Found a match so ignore
hibeg = self.term.MODE['bold']
hiend = self.term.MODE['normal']
if matches.available:
More information about the Yum-commits
mailing list