1 |
Author: grobian |
2 |
Date: 2008-09-28 10:54:48 +0000 (Sun, 28 Sep 2008) |
3 |
New Revision: 11577 |
4 |
|
5 |
Modified: |
6 |
main/branches/prefix/bin/ebuild.sh |
7 |
Log: |
8 |
Crude hack to solve |
9 |
rmdir .../var/tmp/binpkgs/cat/pkg-ver: Invalid argument |
10 |
and alike for var/tmp/portage/... on Solaris. |
11 |
|
12 |
rmtree(2) returns EINVAL on Solaris if the argument (the dir to remove) |
13 |
is the current directory, or the argument ends with '.'. Since we cd to |
14 |
PORTAGE_BUILDDIR we indeed cannot remove it anymore on Solaris. Hence, |
15 |
we now try to go to the parent of this dir, but ultimately a better |
16 |
solution should be found. |
17 |
|
18 |
|
19 |
|
20 |
Modified: main/branches/prefix/bin/ebuild.sh |
21 |
=================================================================== |
22 |
--- main/branches/prefix/bin/ebuild.sh 2008-09-27 22:16:26 UTC (rev 11576) |
23 |
+++ main/branches/prefix/bin/ebuild.sh 2008-09-28 10:54:48 UTC (rev 11577) |
24 |
@@ -273,7 +273,7 @@ |
25 |
} |
26 |
|
27 |
# Ensure that $PWD is sane whenever possible. |
28 |
-cd "$PORTAGE_BUILDDIR" 2>/dev/null |
29 |
+cd "${PORTAGE_BUILDDIR}"/.. 2>/dev/null |
30 |
|
31 |
#if no perms are specified, dirs/files will have decent defaults |
32 |
#(not secretive, but not stupid) |