diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-08-06 19:26:48 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-08-06 19:26:48 +0000 |
commit | 2eab6930cc67c631b679b55f0b588e4f625ebb19 (patch) | |
tree | e5bf04ad3eb7884d57b4c1529a4d7b90b6ae2825 | |
parent | 40f1487f31cac149c4260117fd1c4d312120abf0 (diff) | |
download | portage-2eab6930cc67c631b679b55f0b588e4f625ebb19.tar.gz portage-2eab6930cc67c631b679b55f0b588e4f625ebb19.tar.bz2 portage-2eab6930cc67c631b679b55f0b588e4f625ebb19.zip |
Bug #277537 - Synchronize order of PATH elements with the order defined by
/etc/profile (promote paths under /usr to the front). Thanks to Michał Górny
<gentoo@mgorny.alt.pl>.
svn path=/main/trunk/; revision=13935
-rwxr-xr-x | bin/ebuild.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 3ee9be0a6..0483046fa 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -22,7 +22,7 @@ ROOTPATH=${ROOTPATH##:} ROOTPATH=${ROOTPATH%%:} PREROOTPATH=${PREROOTPATH##:} PREROOTPATH=${PREROOTPATH%%:} -PATH=$PORTAGE_BIN_PATH/ebuild-helpers:$PREROOTPATH${PREROOTPATH:+:}/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin${ROOTPATH:+:}$ROOTPATH +PATH=$PORTAGE_BIN_PATH/ebuild-helpers:$PREROOTPATH${PREROOTPATH:+:}/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin${ROOTPATH:+:}$ROOTPATH export PATH # These two functions wrap sourcing and calling respectively. At present they @@ -1891,7 +1891,7 @@ ebuild_main() { ;; esac - PATH=$ebuild_helpers_path:$PREROOTPATH${PREROOTPATH:+:}/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin${ROOTPATH:+:}$ROOTPATH + PATH=$ebuild_helpers_path:$PREROOTPATH${PREROOTPATH:+:}/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin${ROOTPATH:+:}$ROOTPATH unset ebuild_helpers_path if ! hasq $EBUILD_SH_ARGS clean depend help info nofetch ; then |