summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-10 00:08:13 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-10 00:08:13 +0000
commit4722f5ae2ecbd194ecc34c6365f64b2d6614295a (patch)
treea6ab7c1a68b74507a8532c423bb95f2353ebfc0a /bin/etc-update
parent3f97da4a44583dc747043f0b973adca167051ba4 (diff)
downloadportage-4722f5ae2ecbd194ecc34c6365f64b2d6614295a.tar.gz
portage-4722f5ae2ecbd194ecc34c6365f64b2d6614295a.tar.bz2
portage-4722f5ae2ecbd194ecc34c6365f64b2d6614295a.zip
For bug #170178, remove all hardcoded references to '/usr/lib/portage'.
svn path=/main/trunk/; revision=6203
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-xbin/etc-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/etc-update b/bin/etc-update
index c1569ff12..ab376b83c 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -439,8 +439,8 @@ scriptname=$(basename $0)
trap die term
-
-eval $(/usr/lib/portage/bin/portageq envvar -v CONFIG_PROTECT \
+type portageq > /dev/null || exit $?
+eval $(portageq envvar -v CONFIG_PROTECT \
CONFIG_PROTECT_MASK PORTAGE_CONFIGROOT PORTAGE_TMPDIR ROOT USERLAND)
export PORTAGE_TMPDIR