From 438f4bd433cf43b136451eae85e71120ec2b755d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 9 Oct 2008 20:31:04 +0000 Subject: [PATCH] At the end of dyn_clean(), also remove the $CATEGORY directory if possible. svn path=/main/trunk/; revision=11667 --- bin/ebuild.sh | 4 ++-- 1 file 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 } -- 2.26.2