backport portage-pkg path change from savior branch
authorMike Frysinger <vapier@gentoo.org>
Sat, 11 Mar 2006 10:36:17 +0000 (10:36 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 11 Mar 2006 10:36:17 +0000 (10:36 -0000)
svn path=/main/trunk/; revision=2850

bin/quickpkg
pym/portage.py

index 8f57f5d05c92a03dc609844b942604a28dd7fcbb..abb3d294178b7eed3dfcf8d888d6fc328be87c97 100755 (executable)
@@ -46,11 +46,11 @@ source /sbin/functions.sh
 # $1 = package-name w/version
 # $2 = category
 do_pkg() {
-       mkdir -p "${PORTAGE_TMPDIR}/portage-pkg" || exit 1
-       chmod 0750 "${PORTAGE_TMPDIR}/portage-pkg"
-       MYDIR="${PORTAGE_TMPDIR}/portage-pkg/$1"
+       mkdir -p "${PORTAGE_TMPDIR}/binpkgs" || exit 1
+       chmod 0750 "${PORTAGE_TMPDIR}/binpkgs"
+       MYDIR="${PORTAGE_TMPDIR}/binpkgs/$1"
        SRCDIR="${PORTAGE_DB}/$2/$1"
-       LOG="${PORTAGE_TMPDIR}/portage-pkg/$1-quickpkglog"
+       LOG="${PORTAGE_TMPDIR}/binpkgs/$1-quickpkglog"
 
        ebegin "Building package for $1"
        (
index dd007f1f1ab66e84c462cf27f01be3fcd3a981a6..abcb10acac8b3ceb2fbb37c12e9e66ace9c88546 100644 (file)
@@ -2509,7 +2509,7 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea
 
        mysettings["BUILD_PREFIX"] = mysettings["PORTAGE_TMPDIR"]+"/portage"
        mysettings["HOME"]         = mysettings["BUILD_PREFIX"]+"/homedir"
-       mysettings["PKG_TMPDIR"]   = mysettings["PORTAGE_TMPDIR"]+"/portage-pkg"
+       mysettings["PKG_TMPDIR"]   = mysettings["PORTAGE_TMPDIR"]+"/binpkgs"
        mysettings["PORTAGE_BUILDDIR"]     = mysettings["BUILD_PREFIX"]+"/"+mysettings["PF"]
 
        mysettings["PORTAGE_BASHRC"] = EBUILD_SH_ENV_FILE
@@ -6447,7 +6447,7 @@ class dblink:
                return os.path.exists(self.dbdir+"/CATEGORY")
 
 def cleanup_pkgmerge(mypkg,origdir):
-       shutil.rmtree(settings["PORTAGE_TMPDIR"]+"/portage-pkg/"+mypkg)
+       shutil.rmtree(settings["PORTAGE_TMPDIR"]+"/binpkgs/"+mypkg)
        if os.path.exists(settings["PORTAGE_TMPDIR"]+"/portage/"+mypkg+"/temp/environment"):
                os.unlink(settings["PORTAGE_TMPDIR"]+"/portage/"+mypkg+"/temp/environment")
        os.chdir(origdir)
@@ -6468,7 +6468,7 @@ def pkgmerge(mytbz2,myroot,mysettings):
                return None
        mycat=mycat.strip()
        mycatpkg=mycat+"/"+mypkg
-       tmploc=mysettings["PORTAGE_TMPDIR"]+"/portage-pkg/"
+       tmploc=mysettings["PORTAGE_TMPDIR"]+"/binpkgs/"
        pkgloc=tmploc+"/"+mypkg+"/bin/"
        infloc=tmploc+"/"+mypkg+"/inf/"
        myebuild=tmploc+"/"+mypkg+"/inf/"+os.path.basename(mytbz2)[:-4]+"ebuild"