summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-09 20:31:04 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-09 20:31:04 +0000
commit438f4bd433cf43b136451eae85e71120ec2b755d (patch)
tree7fb43b12cae75bf3d818ac4a1bac9c94f84eeeb7
parenta946999a8ed558ed50d5a37a3b4eee9ccc40961a (diff)
downloadportage-438f4bd433cf43b136451eae85e71120ec2b755d.tar.gz
portage-438f4bd433cf43b136451eae85e71120ec2b755d.tar.bz2
portage-438f4bd433cf43b136451eae85e71120ec2b755d.zip
At the end of dyn_clean(), also remove the $CATEGORY directory if possible.v2.2_rc12
svn path=/main/trunk/; revision=11667
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index b501e94a2..92b635c3a 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -753,8 +753,8 @@ dyn_clean() {
# Some kernels, such as Solaris, return EINVAL when an attempt
# is made to remove the current working directory.
- cd "$PORTAGE_BUILDDIR"/..
- rmdir "$PORTAGE_BUILDDIR" 2>/dev/null
+ cd "$PORTAGE_BUILDDIR"/../..
+ rmdir "$PORTAGE_BUILDDIR" "${PORTAGE_BUILDDIR%/*}" 2>/dev/null
true
}