[Yum-devel] [PATCH] yummain.py: change e to e.value in to_unicode function
WangLi
iec23801 at gmail.com
Thu Jan 8 09:14:21 UTC 2009
Dear, all
When gpgcheck is enabled in repo file but the rpm packages are not signed,
yum will donot install the message and have no any message using 'yum
install packagename'.The following patch will solve the problem:
--- yum-3.2.19/yummain.py.old 2009-01-06 13:18:15.000000000 +0800
+++ yum-3.2.19/yummain.py 2009-01-06 13:24:15.000000000 +0800
@@ -60,7 +60,7 @@
return 1
def exFatal(e):
- logger.critical('\n\n%s', to_unicode(e))
+ logger.critical('\n\n%s', to_unicode(e.value))
if unlock(): return 200
return 1
Br
Michael.Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.baseurl.org/pipermail/yum-devel/attachments/20090108/7a0e9a78/attachment.htm
More information about the Yum-devel
mailing list