Bug #201082 - Don't call config.load_infodir() prior to pkg_postinst()
authorZac Medico <zmedico@gentoo.org>
Mon, 3 Dec 2007 19:13:41 +0000 (19:13 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 3 Dec 2007 19:13:41 +0000 (19:13 -0000)
because it's not needed and the ebuild path that's passed in for
postinst is may be from the portage tree, which causes load_infodir()
to discard critical metadata such as CATEGORY without realoading
it. (trunk r8822)

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

pym/portage.py

index 015dad08f0aef62586b1d0648d7ac8cd92dfd74e..4614c85cb2b61fdd9af069cb71f743819a6e65fc 100644 (file)
@@ -4462,7 +4462,6 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                                                noiselevel=-1)
                        return phase_retval
                elif mydo == "postinst":
-                       mysettings.load_infodir(mysettings["O"])
                        phase_retval = spawn(
                                _shell_quote(ebuild_sh_binary) + " " + mydo,
                                mysettings, debug=debug, free=1, logfile=logfile)