doebuild: export REPLACING_VERSIONS more
authorZac Medico <zmedico@gentoo.org>
Fri, 17 Jun 2011 19:25:31 +0000 (12:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 17 Jun 2011 19:25:31 +0000 (12:25 -0700)
This is for api consumers like Sabayon's Entropy.

pym/portage/package/ebuild/doebuild.py

index 5c81fbd45f7dd06ada46ce72a170a541acd39265..782e8f1b5fcb02e9b0245e2353ad56cb089dc00f 100644 (file)
@@ -702,7 +702,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                                mysettings.configdict["pkg"]["MERGE_TYPE"] = "binary"
 
                if eapi_exports_replace_vars(mysettings["EAPI"]) and \
-                       (mydo in ("pretend", "setup") or \
+                       (mydo in ("postinst", "postrm", "preinst", "prerm", "pretend", "setup") or \
                        ("noauto" not in features and not returnpid and \
                        (mydo in actionmap_deps or mydo in ("merge", "package", "qmerge")))):
                        if not vartree: