summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-09-27 00:08:42 +0000
committerZac Medico <zmedico@gentoo.org>2008-09-27 00:08:42 +0000
commitf78717d5d94ed8cba54f219f037ae2f42e671526 (patch)
treeb25cc275ca28b19ea8b0c96408fa06dec69ed5a4
parent710ccceeb24990d5793a75d42a580735b042684a (diff)
downloadportage-f78717d5d94ed8cba54f219f037ae2f42e671526.tar.gz
portage-f78717d5d94ed8cba54f219f037ae2f42e671526.tar.bz2
portage-f78717d5d94ed8cba54f219f037ae2f42e671526.zip
Make $PWD default to $PORTAGE_BUILDDIR since $WORKDIR is sometimes created
later. svn path=/main/trunk/; revision=11563
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index f03e418d0..987d1a475 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -272,8 +272,8 @@ register_die_hook() {
export EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} $*"
}
-# Ensure that $CWD is sane whenever possible.
-cd "$WORKDIR" 2>/dev/null
+# Ensure that $PWD is sane whenever possible.
+cd "$PORTAGE_BUILDDIR" 2>/dev/null
#if no perms are specified, dirs/files will have decent defaults
#(not secretive, but not stupid)