[yum-cvs] yum shell.py,1.17,1.18
Seth Vidal
skvidal at login.linux.duke.edu
Tue May 10 00:57:18 UTC 2005
Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv30536
Modified Files:
shell.py
Log Message:
make sure you solve before you run (whoops) thanks to pjones for the fix
Index: shell.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/shell.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- shell.py 29 Mar 2005 15:55:44 -0000 1.17
+++ shell.py 10 May 2005 00:57:15 -0000 1.18
@@ -146,7 +146,9 @@
if code == 1:
for msg in msgs:
self.base.errorlog(0, 'Error: %s' % msg)
-
+ else:
+ self.base.log(2, 'Success resolving dependencies')
+
elif cmd == 'run':
return self.do_run('')
@@ -269,6 +271,12 @@
def do_run(self, line):
if len(self.base.tsInfo) > 0:
try:
+ (code, msgs) = self.base.buildTransaction()
+ if code == 1:
+ for msg in msgs:
+ self.base.errorlog(0, 'Error: %s' % msg)
+ return False
+
returnval = self.base.doTransaction()
except Errors.YumBaseError, e:
self.base.errorlog(0, 'Error: %s' % e)
More information about the Yum-cvs-commits
mailing list