Add a fallback PORTAGE_BZIP2_COMMAND setting in ebuild.sh, as a
authorZac Medico <zmedico@gentoo.org>
Tue, 31 Aug 2010 15:10:29 +0000 (08:10 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 31 Aug 2010 15:10:29 +0000 (08:10 -0700)
workaround for portage-9999 users.

bin/ebuild.sh

index 7400ca2b7471906a8ad8b8dd406b3a8523fa84f8..1428ac8d2ba96dcfdf00660151808fccce29a2a3 100755 (executable)
@@ -23,6 +23,12 @@ PREROOTPATH=${PREROOTPATH%%:}
 PATH=$PORTAGE_BIN_PATH/ebuild-helpers:$PREROOTPATH${PREROOTPATH:+:}/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin${ROOTPATH:+:}$ROOTPATH
 export PATH
 
+# This is just a temporary workaround for portage-9999 users since
+# earlier portage versions do not detect a version change in this case
+# (9999 to 9999) and therefore they try execute an incompatible version of
+# ebuild.sh during the upgrade.
+export PORTAGE_BZIP2_COMMAND=${PORTAGE_BZIP2_COMMAND:-bzip2} 
+
 # These two functions wrap sourcing and calling respectively.  At present they
 # perform a qa check to make sure eclasses and ebuilds and profiles don't mess
 # with shell opts (shopts).  Ebuilds/eclasses changing shopts should reset them