[yum-git] yum/transactioninfo.py
Tim Lauridsen
timlau at linux.duke.edu
Mon Feb 4 10:07:58 UTC 2008
yum/transactioninfo.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 912381376cf73a5faa17b7e3c665756712b74f4d
Author: Tim Lauridsen <tla at rasmil.dk>
Date: Mon Feb 4 11:02:43 2008 +0100
added __repr__ to TransactionMember
diff --git a/yum/transactioninfo.py b/yum/transactioninfo.py
index c1ee5c1..c899abc 100644
--- a/yum/transactioninfo.py
+++ b/yum/transactioninfo.py
@@ -565,6 +565,9 @@ class TransactionMember:
def __str__(self):
return "%s.%s %s-%s-%s - %s" % (self.name, self.arch, self.epoch,
self.version, self.release, self.ts_state)
+
+ def __repr__(self):
+ return "<%s : %s (%s)>" % (self.__class__.__name__, str(self),hex(id(self)))
# This is the tricky part - how do we nicely setup all this data w/o going insane
# we could make the txmember object be created from a YumPackage base object
More information about the Yum-cvs-commits
mailing list