[Yum-devel] [PATCH] traceback when doing yum shell/ts
Pekka Pietikainen
pp at ee.oulu.fi
Thu Aug 27 21:25:09 UTC 2009
yum-3.2.23-14.fc12.noarch
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Yum Shell
>
> update kernel
..
> > ts
Traceback (most recent call last):
..
File "/usr/share/yum-cli/shell.py", line 176, in do_transaction
self.base.listTransaction())
File "/usr/share/yum-cli/output.py", line 1000, in listTransaction
out.append(summary)
AttributeError: 'unicode' object has no attribute 'append'
Following fixes it by making out a list in the if not data['n'] case:
--- output.py~ 2009-08-18 22:00:46.000000000 +0300
+++ output.py 2009-08-28 00:20:30.735482730 +0300
@@ -903,7 +903,7 @@
"""returns a string rep of the transaction in an easy-to-read way."""
self.tsInfo.makelists(True, True)
- out = u""
+ out = [u""]
pkglist_lines = []
data = {'n' : {}, 'v' : {}, 'r' : {}}
a_wid = 0 # Arch can't get "that big" ... so always use the max.
More information about the Yum-devel
mailing list