[Yum-devel] [PATCH] Pass any check-update arguments to "list obsoletes".

James Antill james at and.org
Fri Feb 18 19:19:37 UTC 2011


---
 yumcommands.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/yumcommands.py b/yumcommands.py
index f196477..62b8746 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -626,13 +626,14 @@ class CheckUpdateCommand(YumCommand):
         checkEnabledRepo(base)
 
     def doCommand(self, base, basecmd, extcmds):
+        obscmds = ['obsoletes'] + extcmds
         base.extcmds.insert(0, 'updates')
         result = 0
         try:
             ypl = base.returnPkgLists(extcmds)
             if (base.conf.obsoletes or
                 base.verbose_logger.isEnabledFor(logginglevels.DEBUG_3)):
-                typl = base.returnPkgLists(['obsoletes'])
+                typl = base.returnPkgLists(obscmds)
                 ypl.obsoletes = typl.obsoletes
                 ypl.obsoletesTuples = typl.obsoletesTuples
 
-- 
1.7.3.4



More information about the Yum-devel mailing list