diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-09-23 19:01:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-09-23 19:01:03 +0000 |
commit | 9fd6baa322a53a6aa538941a2407528c4d701d0f (patch) | |
tree | 97670a8d375535a1e55ea86d6ac91655a6086406 | |
parent | 6ce4efad9209f6ff6d6067dba09abebc19b206b8 (diff) | |
download | portage-9fd6baa322a53a6aa538941a2407528c4d701d0f.tar.gz portage-9fd6baa322a53a6aa538941a2407528c4d701d0f.tar.bz2 portage-9fd6baa322a53a6aa538941a2407528c4d701d0f.zip |
Remove doebuild_environment return value checks since it no raises and exception if necessary.
svn path=/main/trunk/; revision=4518
-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) |