summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-26 19:05:27 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-26 19:05:27 +0000
commitf444eb008882654af0f7d83426060c07fbf6ab64 (patch)
treeb6703c533f5e4cc4e6541b169c2ca7468dbfc917 /bin/ebuild.sh
parent9aba5f55c5fad3b308efd54204851097f45f1881 (diff)
downloadportage-f444eb008882654af0f7d83426060c07fbf6ab64.tar.gz
portage-f444eb008882654af0f7d83426060c07fbf6ab64.tar.bz2
portage-f444eb008882654af0f7d83426060c07fbf6ab64.zip
* In doebuild(), don't create directories for the "clean" or "unmerge".
* Fix dyn_clean() to clean the status file and return early when appropriate. (trunk r8692) svn path=/main/branches/2.1.2/; revision=8693
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index b8ca584d4..9c4436697 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -659,8 +659,9 @@ dyn_clean() {
if [ -z "${PORTAGE_BUILDDIR}" ]; then
echo "Aborting clean phase because PORTAGE_BUILDDIR is unset!"
return 1
+ elif [ ! -d "${PORTAGE_BUILDDIR}" ] ; then
+ return 0
fi
-
if type -P chflags > /dev/null ; then
chflags -R noschg,nouchg,nosappnd,nouappnd "${PORTAGE_BUILDDIR}"
chflags -R nosunlnk,nouunlnk "${PORTAGE_BUILDDIR}" 2>/dev/null
@@ -675,6 +676,7 @@ dyn_clean() {
fi
if ! hasq keepwork $FEATURES; then
+ rm -rf "${PORTAGE_BUILDDIR}/.exit_status"
rm -rf "${PORTAGE_BUILDDIR}/.logid"
rm -rf "${PORTAGE_BUILDDIR}/.unpacked"
rm -rf "${PORTAGE_BUILDDIR}/.compiled"