Don't make variables readonly during the "depend" phase.
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 06:31:36 +0000 (06:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 06:31:36 +0000 (06:31 -0000)
svn path=/main/trunk/; revision=8540

bin/ebuild.sh

index 0fcd5e304b2d63a5d45f63f9ccb8d221f9319411..af2b656b17973e8fdd8a2320c8b73caa5d8d1539 100755 (executable)
@@ -1645,7 +1645,7 @@ done
 unset x
 
 # Lock the dbkey variables after the global phase
-declare -r ${READONLY_EBUILD_METADATA}
+[ ${EBUILD_PHASE} != "depend" ] && declare -r ${READONLY_EBUILD_METADATA}
 
 if hasq nostrip ${FEATURES} ${RESTRICT} || hasq strip ${RESTRICT}
 then