summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-12 04:25:01 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-12 04:25:01 +0000
commitf773aa347211235417363945d8bfd409e201357e (patch)
tree186998bdfa7a6702c192753b195f494c9b54fe50 /bin/ebuild.sh
parentddc642bf85f84ecc8c2fa74472870f313ab94912 (diff)
downloadportage-f773aa347211235417363945d8bfd409e201357e.tar.gz
portage-f773aa347211235417363945d8bfd409e201357e.tar.bz2
portage-f773aa347211235417363945d8bfd409e201357e.zip
Make dyn_clean ignore FEATURES=keepwork when [[ $EMERGE_FROM = binary ]]
and remove shutil.rmtree() call from Binpkg._clean_exit() since dyn_clean is guaranteed to do a full clean now. svn path=/main/trunk/; revision=13069
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 23f1c447f..b75dfc098 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -712,11 +712,12 @@ dyn_clean() {
rm -rf "${PORTAGE_BUILDDIR}/image" "${PORTAGE_BUILDDIR}/homedir"
rm -f "${PORTAGE_BUILDDIR}/.installed"
- if ! hasq keeptemp $FEATURES && ! hasq keepwork $FEATURES ; then
+ if [[ $EMERGE_FROM = binary ]] || \
+ ! hasq keeptemp $FEATURES && ! hasq keepwork $FEATURES ; then
rm -rf "${T}"
fi
- if ! hasq keepwork $FEATURES; then
+ if [[ $EMERGE_FROM = binary ]] || ! hasq keepwork $FEATURES; then
rm -f "$PORTAGE_BUILDDIR"/.{exit_status,logid,unpacked,prepared} \
"$PORTAGE_BUILDDIR"/.{configured,compiled,tested,packaged}