[Yum-devel] [PATCH] Allow "yum update" to pass the alwaysprompt check

James Antill james at and.org
Fri Apr 23 18:53:42 UTC 2010


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

diff --git a/cli.py b/cli.py
index 4d5b538..a575179 100644
--- a/cli.py
+++ b/cli.py
@@ -1166,7 +1166,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
         for txmbr in self.tsInfo.getMembers():
             if txmbr.isDep or \
                    txmbr.ts_state == 'e' or \
-                   txmbr.name not in self.extcmds:
+                   (self.extcmds and txmbr.name not in self.extcmds):
                 return True
         
         # otherwise, don't prompt        
-- 
1.6.6.1



More information about the Yum-devel mailing list