elif mydo == "setup":
infodir = os.path.join(
mysettings["PORTAGE_BUILDDIR"], "build-info")
- if os.path.isdir(infodir):
- """Load USE flags for setup phase of a binary package.
- Ideally, the environment.bz2 would be used instead."""
- mysettings.load_infodir(infodir)
retval = spawn(
_shell_quote(ebuild_sh_binary) + " " + mydo, mysettings,
debug=debug, free=1, logfile=logfile)
noiselevel=-1)
return phase_retval
elif mydo in ("prerm", "postrm", "config", "info"):
- mysettings.load_infodir(mysettings["O"])
retval = spawn(
_shell_quote(ebuild_sh_binary) + " " + mydo,
mysettings, debug=debug, free=1, logfile=logfile)