From: Fabian Groffen Date: Thu, 19 Oct 2006 19:50:32 +0000 (-0000) Subject: Eliminate double prefix by making sure we call doebuild with the X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=acd6297e2b9c0ded43e7f581531c08e90c5386a8;p=portage.git Eliminate double prefix by making sure we call doebuild with the original root. svn path=/main/branches/prefix/; revision=4757 --- diff --git a/pym/portage.py b/pym/portage.py index a511ea279..3d763c73f 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6192,6 +6192,7 @@ class dblink: # secondhand = list of symlinks that have been skipped due to # their target not existing (will merge later), + origroot = destroot destroot = normalize_path(destroot + portage_const.EPREFIX) if not os.path.isdir(srcroot): @@ -6318,7 +6319,7 @@ class dblink: # run preinst script if myebuild is None: myebuild = os.path.join(inforoot, self.pkg + ".ebuild") - a = doebuild(myebuild, "preinst", destroot, self.settings, cleanup=cleanup, + a = doebuild(myebuild, "preinst", origroot, self.settings, cleanup=cleanup, use_cache=0, tree=self.treetype, mydbapi=mydbapi, vartree=self.vartree) @@ -6420,7 +6421,7 @@ class dblink: del conf_mem_file #do postinst script - a = doebuild(myebuild, "postinst", destroot, self.settings, use_cache=0, + a = doebuild(myebuild, "postinst", origroot, self.settings, use_cache=0, tree=self.treetype, mydbapi=mydbapi, vartree=self.vartree) # XXX: Decide how to handle failures here. @@ -6446,7 +6447,7 @@ class dblink: # Process ebuild logfiles elog_process(self.mycpv, self.settings) if "noclean" not in self.settings.features: - doebuild(myebuild, "clean", destroot, self.settings, + doebuild(myebuild, "clean", origroot, self.settings, tree=self.treetype, mydbapi=mydbapi, vartree=self.vartree) return 0