diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-12-07 22:22:31 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-12-07 22:22:31 -0800 |
commit | ff52f9dc31004becb8022e6437088d01917f413c (patch) | |
tree | 0f333c6bf4c09f751d993ef843089f8b5c80ef2e /bin/ebuild-helpers/fperms | |
parent | c93a46851c43f7e8539a67b2376dc8f55af41789 (diff) | |
download | portage-ff52f9dc31004becb8022e6437088d01917f413c.tar.gz portage-ff52f9dc31004becb8022e6437088d01917f413c.tar.bz2 portage-ff52f9dc31004becb8022e6437088d01917f413c.zip |
Make USE=prefix enable EPREFIX in all EAPIs.
This is safe because the prefix flag should be masked in all non-prefix
profiles, and older EAPIs would otherwise be useless with prefix
configurations. This brings compatibility with the prefix branch of
portage, which also supports EPREFIX for all EAPIs (for obvious
reasons).
Diffstat (limited to 'bin/ebuild-helpers/fperms')
-rwxr-xr-x | bin/ebuild-helpers/fperms | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/fperms b/bin/ebuild-helpers/fperms index 9a2971ae5..207cf54a5 100755 --- a/bin/ebuild-helpers/fperms +++ b/bin/ebuild-helpers/fperms @@ -4,7 +4,9 @@ source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh -case "$EAPI" in 0|1|2) ED=${D} ;; esac +[[ " ${USE} " == *" prefix "* ]] || \ + case "$EAPI" in 0|1|2) ED=${D} ;; esac + # we can't prefix all arguments because # chmod takes random options slash="/" |