Browse Source

Поддержка make.profile в /etc/portage

master3.3
Mike khiretskiy 8 years ago
parent
commit
a60df2f0b8
  1. 2
      update/update.py
  2. 4
      update/variables/update.py

2
update/update.py

@ -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(

4
update/variables/update.py

@ -117,8 +117,10 @@ class VariableClUpdateSystemProfile(ReadonlyVariable):
"""
def get(self):
try:
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"))

Loading…
Cancel
Save