Fix breakage in PREROOTPATH logic from the EAPI 3 code. (trunk r13386)
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:23:50 +0000 (07:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:23:50 +0000 (07:23 -0000)
svn path=/main/branches/2.1.6/; revision=13538

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