Set IMAGE for minimal backward compatibility with
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Nov 2007 06:21:26 +0000 (06:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Nov 2007 06:21:26 +0000 (06:21 -0000)
overlays or user's bashrc, but don't export it.

svn path=/main/trunk/; revision=8513

bin/ebuild.sh

index 338da2c2b855c78903a682336668b10fb27c3423..bbdc6606e31115a88dbf8bdeaad00310e362998d 100755 (executable)
@@ -1437,6 +1437,9 @@ for x in D T P PN PV PVR PR CATEGORY A EBUILD EMERGE_FROM FILESDIR PORTAGE_TMPDI
        [[ ${!x-UNSET_VAR} != UNSET_VAR ]] && declare -r ${x}
 done
 unset x
+# Set IMAGE for minimal backward compatibility with
+# overlays or user's bashrc, but don't export it.
+IMAGE=${D}
 
 # Turn of extended glob matching so that g++ doesn't get incorrectly matched.
 shopt -u extglob