@ -467,7 +467,7 @@ class Update:
emerge.uninstalling.add_observer(self._printUninstallPackage)
try:
emerge.run()
except EmergeError as e:
except EmergeError:
self.emerge_cache.drop_cache()
if emerge.emerging_error:
self.printPre(
@ -117,8 +117,10 @@ class VariableClUpdateSystemProfile(ReadonlyVariable):
"""
def get(self):
make_profile = self.Get('cl_make_profile')
return path.normpath(
path.join('/etc',os.readlink('/etc/make.profile')))
path.join(path.dirname(make_profile),
os.readlink(make_profile)))
except:
raise VariableError(_("Failed to determine system profile"))