diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-03-27 22:33:26 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-03-27 22:33:26 +0000 |
commit | d78678f86357e78324ff7e541f0091e55c734fe2 (patch) | |
tree | ad374587ca8b4d84657a5e92dfd2918073844b43 | |
parent | source ${T}/environment before the definition of qa_source() and qa_call() so... (diff) | |
download | portage-multirepo-d78678f86357e78324ff7e541f0091e55c734fe2.tar.gz portage-multirepo-d78678f86357e78324ff7e541f0091e55c734fe2.tar.bz2 portage-multirepo-d78678f86357e78324ff7e541f0091e55c734fe2.zip |
Filter the readonly attribute from variables saved in ${T}/environment to prevent 'readonly variable' error messages in later phases. (trunk r6298:6299)
svn path=/main/branches/2.1.2/; revision=6300
-rwxr-xr-x | bin/ebuild.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index f38d1e40..e9b05b6e 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1693,7 +1693,8 @@ if [ -n "${myarg}" ] && \ # Save current environment and touch a success file. (echo for success) umask 002 set | egrep -v "^SANDBOX_" > "${T}/environment" 2>/dev/null - export | egrep -v "^declare -x SANDBOX_" >> "${T}/environment" 2>/dev/null + export | egrep -v "^declare -x SANDBOX_" | \ + sed 's:declare -rx:declare -x:' >> "${T}/environment" 2>/dev/null chown portage:portage "${T}/environment" &>/dev/null chmod g+w "${T}/environment" &>/dev/null fi |