if returnpid:
return phase_retval
- if phase_retval == os.EX_OK:
- msg = _doebuild_exit_status_check(mydo, mysettings)
- if msg:
+ msg = _doebuild_exit_status_check(mydo, mysettings)
+ if msg:
+ if phase_retval == os.EX_OK:
phase_retval = 1
- from textwrap import wrap
- from portage.elog.messages import eerror
- for l in wrap(msg, 72):
- eerror(l, phase=mydo, key=mysettings.mycpv)
+ from textwrap import wrap
+ from portage.elog.messages import eerror
+ for l in wrap(msg, 72):
+ eerror(l, phase=mydo, key=mysettings.mycpv)
_post_phase_userpriv_perms(mysettings)
if mydo == "install":
logfile=logfile, **kwargs)
finally:
pass
- if rval == os.EX_OK:
- msg = _doebuild_exit_status_check(mydo, mysettings)
- if msg:
+
+ msg = _doebuild_exit_status_check(mydo, mysettings)
+ if msg:
+ if rval == os.EX_OK:
rval = 1
- from textwrap import wrap
- from portage.elog.messages import eerror
- for l in wrap(msg, 72):
- eerror(l, phase=mydo, key=mysettings.mycpv)
+ from textwrap import wrap
+ from portage.elog.messages import eerror
+ for l in wrap(msg, 72):
+ eerror(l, phase=mydo, key=mysettings.mycpv)
+
return rval
_testing_eapis = frozenset()
return msg
def _doebuild_exit_status_check_and_log(settings, mydo, retval):
- if retval != os.EX_OK:
- return retval
msg = _doebuild_exit_status_check(mydo, settings)
if msg:
- retval = 1
+ if retval == os.EX_OK:
+ retval = 1
from textwrap import wrap
from portage.elog.messages import eerror
for l in wrap(msg, 72):
_doebuild_manifest_cache = mf
def exit_status_check(retval):
- if retval != os.EX_OK:
- return retval
msg = _doebuild_exit_status_check(mydo, mysettings)
if msg:
- retval = 1
+ if retval == os.EX_OK:
+ retval = 1
from textwrap import wrap
from portage.elog.messages import eerror
for l in wrap(msg, 72):