From 09a9e560488535d73481d7d2fe13585c9882e98b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Apr 2006 01:09:59 +0000 Subject: 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 --- bin/ebuild.sh | 8 ++------ 1 file 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" -- cgit v1.2.3-65-gdbad