Red Hat Bugzilla – Bug 115420
Yum is not i18n-safe
Last modified: 2014-01-21 17:48:45 EST
Yum is checking for system errors in english.
When the system returns localized errors, it fails.
[root@ulysse root]# yum check-update
Traceback (most recent call last):
File "/usr/bin/yum", line 30, in ?
File "/usr/share/yum/yummain.py", line 169, in main
File "/usr/share/yum/yummain.py", line 121, in lock
while not yumlock.lock(lockfile, mypid, 0644):
File "/usr/share/yum/yumlock.py", line 10, in lock
if not msg.strerror == "File exists": raise msg
OSError: [Errno 17] Le fichier existe.: '/var/run/yum.pid'
[nim@ulysse nim]$ rpm -q yum
I need to check against e.errno.
Thanks for pointing this out. I'll have a fix for it shortly.
Created attachment 97625 [details]
patch to fix the above problem
give it a run - see if it resolves your problem. I'll look for others. If you
find anymore report them, Thanks.
Wouldn't something like
from errno import EEXIST
if not msg.errno == EEXIT
I had already changed the patch to use errno instead.
If you still want me to test I'll try to do it during Sunday night or
please test it. I am fairly confident it will work but testing isn't bad.
The patch works.
Now it has only to find its way into a rawhide rpm;)
Sorry, shouldn't have closed this before it had hit an actual release
Seems fixed in RawHide now