diff options
author | David James <davidjames@google.com> | 2011-04-28 14:22:15 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-05-04 12:37:16 -0700 |
commit | 9d8f999499bd0c6b11e016b99c32a997993275f3 (patch) | |
tree | 236567b3218dd2e8e4adfb9348a1f13e433af176 /bin | |
parent | 329564d1ecaff96f894283200906c2c22a1ede7e (diff) | |
download | portage-9d8f999499bd0c6b11e016b99c32a997993275f3.tar.gz portage-9d8f999499bd0c6b11e016b99c32a997993275f3.tar.bz2 portage-9d8f999499bd0c6b11e016b99c32a997993275f3.zip |
Move preinst/postinst_bsdflags from bash to py
Moving these commands from shell to Python helps avoid an unnecessary
call to misc-functions.sh for the postinst_bsdflags. This improves
performance.
BUG=none
TEST=Run emerge-x86-generic -eg --jobs=16 libchrome
Change-Id: I0c2af50b4d2f7644cabac84fde7fe4d682010c69
Review URL: http://codereview.chromium.org/6676107
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/misc-functions.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 4c5b61a18..af0cc2760 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -723,22 +723,6 @@ install_mask() { set -${shopts} } -preinst_bsdflags() { - hasq chflags $FEATURES || return - # Save all the file flags for restoration after installation. - mtree -c -p "${D}" -k flags > "${T}/bsdflags.mtree" - # Remove all the file flags so that the merge phase can do anything - # necessary. - chflags -R noschg,nouchg,nosappnd,nouappnd "${D}" - chflags -R nosunlnk,nouunlnk "${D}" 2>/dev/null -} - -postinst_bsdflags() { - hasq chflags $FEATURES || return - # Restore all the file flags that were saved before installation. - mtree -e -p "${ROOT}" -U -k flags < "${T}/bsdflags.mtree" &> /dev/null -} - preinst_mask() { if [ -z "${D}" ]; then eerror "${FUNCNAME}: D is unset" |