Remove all calls to config.load_infodir() since it doesn't seem
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Apr 2008 19:07:25 +0000 (19:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Apr 2008 19:07:25 +0000 (19:07 -0000)
to server any purpose now that the complete environment is loaded
from environment.bz2. (trunk r9833:9835)

svn path=/main/branches/2.1.2/; revision=9836

pym/portage.py

index 0826559309d2b67bd5e5905147278eb1c383098e..d54bc973ce6be7361d8dabbfbfd96c47b36039e2 100644 (file)
@@ -4787,12 +4787,6 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                        return spawn(_shell_quote(ebuild_sh_binary) + " " + mydo,
                                mysettings, debug=debug, free=1, logfile=logfile)
                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)
@@ -4849,7 +4843,6 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                                                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)