Only call portageq once
authorMarius Mauch <genone@gentoo.org>
Wed, 19 Jul 2006 11:00:28 +0000 (11:00 -0000)
committerMarius Mauch <genone@gentoo.org>
Wed, 19 Jul 2006 11:00:28 +0000 (11:00 -0000)
svn path=/main/trunk/; revision=3934

bin/etc-update

index e28d38ef2e410898888cadf0f13078f93703d6c7..5f237ee539ed819179a54afa362526e0dae82daf 100755 (executable)
@@ -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)