Crude hack to solve
authorFabian Groffen <grobian@gentoo.org>
Sun, 28 Sep 2008 10:54:48 +0000 (10:54 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sun, 28 Sep 2008 10:54:48 +0000 (10:54 -0000)
commit9d590fc480aa419aaafaa23b39536474d9ab065e
treef1c8e9ec3b65a48071dcc3d08f1962ad1d4bd004
parentd7465a1d22eb9c5ae688c3a2c3cea8d269dd5c1f
Crude hack to solve
  rmdir .../var/tmp/binpkgs/cat/pkg-ver: Invalid argument
and alike for var/tmp/portage/... on Solaris.

rmtree(2) returns EINVAL on Solaris if the argument (the dir to remove)
is the current directory, or the argument ends with '.'.  Since we cd to
PORTAGE_BUILDDIR we indeed cannot remove it anymore on Solaris.  Hence,
we now try to go to the parent of this dir, but ultimately a better
solution should be found.

svn path=/main/branches/prefix/; revision=11577
bin/ebuild.sh