Red Hat Bugzilla – Bug 145366
yumRepo.py calls undefined function '_'
Last modified: 2007-11-30 17:10:58 EST
Description of problem:
If there's an error downloading a header for a yum repository, up2date
will attempt to print a translated error, but because it has not
imported the string translation function. Based on other modules,
adding this to the top should fix it:
from rhpl.translate import _, N_
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure up2date to use yum repository
2. Attempt to install a package from the repository which requires at
least one other package from the repository.
3. A bogus entry in the header.info file will trigger the error.
already fixed in 4.4.x