diff options
author | Marius Mauch <genone@gentoo.org> | 2006-07-19 11:00:28 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2006-07-19 11:00:28 +0000 |
commit | 1b91d012a927cd6036e504a2df835c5b7f11dc45 (patch) | |
tree | b38d67f78c659a3939a2048c478e9bfb100373e4 | |
parent | 40e238323164d38278067961bae4babd8554da1c (diff) | |
download | portage-1b91d012a927cd6036e504a2df835c5b7f11dc45.tar.gz portage-1b91d012a927cd6036e504a2df835c5b7f11dc45.tar.bz2 portage-1b91d012a927cd6036e504a2df835c5b7f11dc45.zip |
Only call portageq once
svn path=/main/trunk/; revision=3934
-rwxr-xr-x | bin/etc-update | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/etc-update b/bin/etc-update index e28d38ef2..5f237ee53 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -397,15 +397,20 @@ trap die term [ -w /etc ] || die "Need root priviledges for write access to /etc" 1 -export PORTAGE_TMPDIR=$(/usr/lib/portage/bin/portageq envvar PORTAGE_TMPDIR) +eval $(/usr/lib/portage/bin/portageq envvar -v PORTAGE_TMPDIR CONFIG_PROTECT CONFIG_PROTECT_MASK) +export PORTAGE_TMPDIR +echo $PORTAGE_TMPDIR +echo $CONFIG_PROTECT +echo $CONFIG_PROTECT_MASK +#export PORTAGE_TMPDIR=$(/usr/lib/portage/bin/portageq envvar PORTAGE_TMPDIR) TMP="${PORTAGE_TMPDIR}/$$" rm -rf ${TMP} 2> /dev/null mkdir ${TMP} || die "failed mkdir command!" 1 # I need the CONFIG_PROTECT value -CONFIG_PROTECT=$(/usr/lib/portage/bin/portageq envvar CONFIG_PROTECT) -CONFIG_PROTECT_MASK=$(/usr/lib/portage/bin/portageq envvar CONFIG_PROTECT_MASK) +#CONFIG_PROTECT=$(/usr/lib/portage/bin/portageq envvar CONFIG_PROTECT) +#CONFIG_PROTECT_MASK=$(/usr/lib/portage/bin/portageq envvar CONFIG_PROTECT_MASK) # load etc-config's configuration EU_AUTOMERGE=$(get_config eu_automerge) |