summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2005-12-26 06:29:50 +0000
committerBrian Harring <ferringb@gentoo.org>2005-12-26 06:29:50 +0000
commit85e3299b684ca9e25c7e0e7c25981a7e255c42f0 (patch)
treef043fabd7b0b87465e29ea86ac6b05c6013f6915 /bin/ebuild.sh
parent82725294809a7100f87dad05f623b4ea00cfd44b (diff)
downloadportage-85e3299b684ca9e25c7e0e7c25981a7e255c42f0.tar.gz
portage-85e3299b684ca9e25c7e0e7c25981a7e255c42f0.tar.bz2
portage-85e3299b684ca9e25c7e0e7c25981a7e255c42f0.zip
'DISTFILES indirection; access $BUILDDIR/distdir instead of $DISTFILES , thus blocking unstated access.
svn path=/main/trunk/; revision=2474
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index bf785ae7a..5ea8f92a6 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -702,6 +702,9 @@ dyn_clean() {
if [ -z "$(find "${BUILDDIR}" -mindepth 1 -maxdepth 1)" ]; then
rmdir "${BUILDDIR}"
fi
+ # do not bind this to doebuild defined DISTDIR; don't trust doebuild, and if mistakes are made it'll
+ # result in it wiping the users distfiles directory (bad).
+ rm -rf "${BUILDDIR}/distdir"
true
}