From: Zac Medico Date: Tue, 27 Mar 2007 22:51:34 +0000 (-0000) Subject: Properly anchor sed regexp for readlonly attribut filtering. (trunk r6300:6301) X-Git-Tag: v2.1.2.3~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db7da9d9fec882bac15641190679d0b87d9c8312;p=portage.git Properly anchor sed regexp for readlonly attribut filtering. (trunk r6300:6301) svn path=/main/branches/2.1.2/; revision=6302 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index e9b05b6e7..f9cc6b6f2 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -987,7 +987,7 @@ dyn_compile() { echo "${EAPI:-0}" > EAPI set +f set > environment - export -p | sed 's:declare -rx:declare -x:' >> environment + export | sed 's:^declare -rx:declare -x:' >> environment bzip2 -f9 environment cp "${EBUILD}" "${PF}.ebuild" @@ -1694,7 +1694,7 @@ if [ -n "${myarg}" ] && \ umask 002 set | egrep -v "^SANDBOX_" > "${T}/environment" 2>/dev/null export | egrep -v "^declare -x SANDBOX_" | \ - sed 's:declare -rx:declare -x:' >> "${T}/environment" 2>/dev/null + 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