Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11667 - main/trunk/bin
Date: Thu, 09 Oct 2008 20:31:07
Message-Id: E1Ko2A4-0007Yg-V5@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-10-09 20:31:04 +0000 (Thu, 09 Oct 2008)
3 New Revision: 11667
4
5 Modified:
6 main/trunk/bin/ebuild.sh
7 Log:
8 At the end of dyn_clean(), also remove the $CATEGORY directory if possible.
9
10
11 Modified: main/trunk/bin/ebuild.sh
12 ===================================================================
13 --- main/trunk/bin/ebuild.sh 2008-10-09 20:03:37 UTC (rev 11666)
14 +++ main/trunk/bin/ebuild.sh 2008-10-09 20:31:04 UTC (rev 11667)
15 @@ -753,8 +753,8 @@
16
17 # Some kernels, such as Solaris, return EINVAL when an attempt
18 # is made to remove the current working directory.
19 - cd "$PORTAGE_BUILDDIR"/..
20 - rmdir "$PORTAGE_BUILDDIR" 2>/dev/null
21 + cd "$PORTAGE_BUILDDIR"/../..
22 + rmdir "$PORTAGE_BUILDDIR" "${PORTAGE_BUILDDIR%/*}" 2>/dev/null
23
24 true
25 }