summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-24 04:39:45 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-24 04:39:45 +0000
commit93705d01bfd5a5091aa793132aec7b6ff4b7f9e7 (patch)
tree174bf3fa0034b558b07a10bf516dcf2bc9844c44
parent00ff606e92e3ae5ec7a1aa04ce3eb1878dc67adb (diff)
downloadportage-93705d01bfd5a5091aa793132aec7b6ff4b7f9e7.tar.gz
portage-93705d01bfd5a5091aa793132aec7b6ff4b7f9e7.tar.bz2
portage-93705d01bfd5a5091aa793132aec7b6ff4b7f9e7.zip
Remove obsolete backing up of ROOTPATH via PORTAGE_ROOTPATH.
svn path=/main/trunk/; revision=15143
-rwxr-xr-xbin/ebuild.sh8
-rw-r--r--pym/portage/__init__.py6
2 files changed, 1 insertions, 13 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 6f6280585..f56dc9485 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -17,13 +17,7 @@ for x in TEMP TMP TMPDIR ; do
done
unset x
-# sandbox's bashrc sources /etc/profile which unsets ROOTPATH,
-# so we have to back it up and restore it.
-if [ -n "${PORTAGE_ROOTPATH}" ] ; then
- export ROOTPATH=${PORTAGE_ROOTPATH}
- unset PORTAGE_ROOTPATH
-fi
-
+echo ROOTPATH=$ROOTPATH
ROOTPATH=${ROOTPATH##:}
ROOTPATH=${ROOTPATH%%:}
PREROOTPATH=${PREROOTPATH##:}
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 04f5cea52..7cc2b237f 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3782,12 +3782,6 @@ class config(object):
mydict.pop("EPREFIX", None)
mydict.pop("EROOT", None)
- # sandbox's bashrc sources /etc/profile which unsets ROOTPATH,
- # so we have to back it up and restore it.
- rootpath = mydict.get("ROOTPATH")
- if rootpath:
- mydict["PORTAGE_ROOTPATH"] = rootpath
-
return mydict
def thirdpartymirrors(self):