Fix portage/update

master3.3
Mike Hiretsky 12 years ago
parent d6948655e8
commit 3ea9c559cc

@ -3326,7 +3326,8 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
filter(lambda x:x.startswith('move '), filter(lambda x:x.startswith('move '),
readLinesFile(os.path.join('/usr/portage/profiles/updates', readLinesFile(os.path.join('/usr/portage/profiles/updates',
updateFiles[0])))) updateFiles[0]))))
if package in self.cachePortdir["portage/update"]: if "portage/update" in self.cachePortdir and \
package in self.cachePortdir["portage/update"]:
self.printWARNING(_("Package {frompkg} was renamed").format(frompkg=package)) self.printWARNING(_("Package {frompkg} was renamed").format(frompkg=package))
return True return True
return False return False

Loading…
Cancel
Save