summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-06 19:26:48 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-06 19:26:48 +0000
commit2eab6930cc67c631b679b55f0b588e4f625ebb19 (patch)
treee5bf04ad3eb7884d57b4c1529a4d7b90b6ae2825 /bin/ebuild.sh
parentBug #277544 - Add missing -c switch in bzip2 arguments. Thanks to Michał Górny (diff)
downloadportage-idfetch-2eab6930cc67c631b679b55f0b588e4f625ebb19.tar.gz
portage-idfetch-2eab6930cc67c631b679b55f0b588e4f625ebb19.tar.bz2
portage-idfetch-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
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 3ee9be0a..0483046f 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