diff options
author | wiktor w brodlo <wiktor@brodlo.net> | 2011-07-10 12:13:37 +0000 |
---|---|---|
committer | wiktor w brodlo <wiktor@brodlo.net> | 2011-07-10 12:13:37 +0000 |
commit | 3a20588f83e42d64f3c15b07a00b944995beefc8 (patch) | |
tree | 1774fe200f5e85581ccede7b8063e640889db070 /gentoo | |
parent | gentoo/utils.py: install Xorg too (diff) | |
download | anaconda-3a20588f83e42d64f3c15b07a00b944995beefc8.tar.gz anaconda-3a20588f83e42d64f3c15b07a00b944995beefc8.tar.bz2 anaconda-3a20588f83e42d64f3c15b07a00b944995beefc8.zip |
gentoo/utils.py: try handling some compilation errors
Diffstat (limited to 'gentoo')
-rw-r--r-- | gentoo/utils.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gentoo/utils.py b/gentoo/utils.py index 2423b8d..4c2333b 100644 --- a/gentoo/utils.py +++ b/gentoo/utils.py @@ -269,12 +269,13 @@ class GentooInstall: # del self._settings[sys_settings_plg_id]['misc']['configprotectskip'][:] def install_package(self, atom, match = None, silent = False, fetch = False): - return self._portage.install(atom) - - def install_masked_package(self, atom): - os.environ["ACCEPT_KEYWORDS"] = "~amd64 ~x86" - return self._portage.install(atom) - del os.environ["ACCEPT_KEYWORDS"] + if not self._portage.install(atom): + os.environ["MAKEOPTS"] = "-j1" + if not self._portage.install(atom): + log = open("/root/emerge-fail.log", "a") + log.writeln(atom) + log.close() + del os.environ["MAKEOPTS"] # TODO: We don't remove anything from stage3 def remove_package(self, atom, match = None, silent = False): |