summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-29 01:09:59 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-29 01:09:59 +0000
commit09a9e560488535d73481d7d2fe13585c9882e98b (patch)
treed34012a5015b6c0f3af504b1aeec1aaece8d6d6e
parent367042c0eddb16adde0b7b559cde4e8c48d3c3a5 (diff)
downloadportage-09a9e560488535d73481d7d2fe13585c9882e98b.tar.gz
portage-09a9e560488535d73481d7d2fe13585c9882e98b.tar.bz2
portage-09a9e560488535d73481d7d2fe13585c9882e98b.zip
In the clean phase, for maximum chflags portablility, make *unlnk flags optional and drop the USERLAND test (bug #113536).
svn path=/main/trunk/; revision=3264
-rwxr-xr-xbin/ebuild.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 896488231..071bd7856 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -709,13 +709,9 @@ dyn_clean() {
return 1
fi
- if [ "$USERLAND" == "BSD" ] && type -p chflags &>/dev/null; then
- chflags -R noschg,nouchg,nosappnd,nouappnd,nosunlnk,nouunlnk \
- "${PORTAGE_BUILDDIR}"
- fi
-
- if [ "$USERLAND" == "Darwin" ] && type -p chflags &>/dev/null; then
+ if type -p chflags &>/dev/null; then
chflags -R noschg,nouchg,nosappnd,nouappnd "${PORTAGE_BUILDDIR}"
+ chflags -R nosunlnk,nouunlnk "${PORTAGE_BUILDDIR}" 2>/dev/null
fi
rm -rf "${PORTAGE_BUILDDIR}/image"