diff options
-rwxr-xr-x | bin/emerge | 4 | ||||
-rw-r--r-- | pym/portage.py | 9 |
2 files changed, 3 insertions, 10 deletions
diff --git a/bin/emerge b/bin/emerge index 37c7bc7b1..c0c82058d 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2014,10 +2014,8 @@ class MergeTask(object): returnme=1 continue - retval = portage.doebuild_environment(y, "setup", myroot, + portage.doebuild_environment(y, "setup", myroot, pkgsettings, self.edebug, 1, portdb) - if retval != os.EX_OK: - return retval portage_util.ensure_dirs( os.path.dirname(pkgsettings["PORTAGE_BUILDDIR"]), gid=portage.portage_gid, mode=070, mask=02) diff --git a/pym/portage.py b/pym/portage.py index 4d07a3bc6..a68a2be73 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2631,7 +2631,6 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m # Allow color.map to control colors associated with einfo, ewarn, etc... for c in ("GOOD", "WARN", "BAD", "HILITE", "BRACKET"): mysettings[c] = output.codes[c] - return os.EX_OK def prepare_build_dirs(myroot, mysettings, cleanup): @@ -2841,10 +2840,8 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, noiselevel=-1) return 1 - mystatus = doebuild_environment(myebuild, mydo, myroot, mysettings, debug, + doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, mydbapi) - if mystatus != os.EX_OK: - return mystatus # get possible slot information from the deps file if mydo=="depend": @@ -5753,10 +5750,8 @@ class dblink: self.settings.load_infodir(self.dbdir) if myebuildpath: - retval = doebuild_environment(myebuildpath, "prerm", self.myroot, + doebuild_environment(myebuildpath, "prerm", self.myroot, self.settings, 0, 0, self.vartree.dbapi) - if retval != os.EX_OK: - sys.exit(retval) portage_util.ensure_dirs( os.path.dirname(self.settings["PORTAGE_BUILDDIR"]), gid=portage_gid, mode=070, mask=02) |