diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-04-13 21:21:53 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-04-13 21:21:53 +0000 |
commit | f0cf5a75c49cc238be932e28e25a203ebbb42ce2 (patch) | |
tree | bee6605aeb2356e1a2135ed5914cd5cf128d4f37 /bin/ebuild-helpers/prepall | |
parent | dbf94573a662bebf68d0782a7ee01557820f54ec (diff) | |
download | portage-f0cf5a75c49cc238be932e28e25a203ebbb42ce2.tar.gz portage-f0cf5a75c49cc238be932e28e25a203ebbb42ce2.tar.bz2 portage-f0cf5a75c49cc238be932e28e25a203ebbb42ce2.zip |
Make portage.bsd_chflags correspond to FEATURES=chflags so that it can be
used for related conditionals in shell code.
svn path=/main/trunk/; revision=13342
Diffstat (limited to 'bin/ebuild-helpers/prepall')
-rwxr-xr-x | bin/ebuild-helpers/prepall | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/prepall index eec5c814c..da37f571d 100755 --- a/bin/ebuild-helpers/prepall +++ b/bin/ebuild-helpers/prepall @@ -5,7 +5,7 @@ source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh -if type -P chflags > /dev/null && type -P mtree > /dev/null ; then +if hasq chflags $FEATURES ; then # Save all the file flags for restoration at the end of prepall. mtree -c -p "${D}" -k flags > "${T}/bsdflags.mtree" # Remove all the file flags so that prepall can do anything necessary. @@ -18,7 +18,7 @@ prepallinfo prepallstrip -if type -P chflags > /dev/null && type -P mtree > /dev/null; then +if hasq chflags $FEATURES ; then # Restore all the file flags that were saved at the beginning of prepall. mtree -U -e -p "${D}" -k flags < "${T}/bsdflags.mtree" &> /dev/null fi |