Fix breakage in PREROOTPATH logic from the EAPI 3 code.
authorZac Medico <zmedico@gentoo.org>
Thu, 23 Apr 2009 05:04:25 +0000 (05:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 23 Apr 2009 05:04:25 +0000 (05:04 -0000)
svn path=/main/trunk/; revision=13386

bin/ebuild.sh

index 357756a4f690c2cda47dce17989d74ddad0856b0..5f78c8e41c1eec171c6325a13075e20b56c58b19 100755 (executable)
@@ -1914,6 +1914,7 @@ ebuild_main() {
        esac
 
        export PATH="/usr/local/sbin:/sbin:/usr/sbin:${ebuild_helpers_path}:/usr/local/bin:/bin:/usr/bin:${ROOTPATH}"
+       [[ -n $PREROOTPATH ]] && export PATH="${PREROOTPATH%%:}:$PATH"
        unset ebuild_helpers_path
 
        if ! hasq $EBUILD_SH_ARGS clean depend help info nofetch ; then