[yum-cvs] yum/rpmtrans.py
Seth Vidal
skvidal at linux.duke.edu
Mon Oct 8 15:47:16 UTC 2007
yum/rpmtrans.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 1fa1ea1e0aec160d37c32381d6adb41bd1bcbf81
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Oct 8 11:46:12 2007 -0400
fix up the filelog fix
diff --git a/yum/rpmtrans.py b/yum/rpmtrans.py
index 52a1a7c..a3cb203 100644
--- a/yum/rpmtrans.py
+++ b/yum/rpmtrans.py
@@ -108,8 +108,12 @@ class RPMBaseCallback:
print >> sys.stderr, msg
def filelog(self, package, action):
- # check package object type - if it is a string - just output it
- msg = '%s: %s' % (self.fileaction[action], package)
+ # If the action is not in the fileaction list then dump it as a string
+ # hurky but, sadly, not much else
+ if self.fileaction.has_key(action):
+ msg = '%s: %s' % (self.fileaction[action], package)
+ else:
+ msg = '%s: %s' % (package, action)
self.logger.info(msg)
More information about the Yum-cvs-commits
mailing list