diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-09-29 21:09:45 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-09-29 21:09:45 +0000 |
commit | 6ec356cb13cb436ff893cc46790bf823d320f353 (patch) | |
tree | da68b6addcfef9c2ed81c4b34ab2a421ee3d51a4 | |
parent | a9c7f97052b4f253fdb5fdccb8423e03b8aee6c4 (diff) | |
download | portage-6ec356cb13cb436ff893cc46790bf823d320f353.tar.gz portage-6ec356cb13cb436ff893cc46790bf823d320f353.tar.bz2 portage-6ec356cb13cb436ff893cc46790bf823d320f353.zip |
Initialize PORTAGE_TMPDIR before using it.
svn path=/main/trunk/; revision=7887
-rwxr-xr-x | bin/etc-update | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/etc-update b/bin/etc-update index 3ca5a52b1..242a3f7cf 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -456,14 +456,14 @@ function die() { # scriptname=$(basename $0) -TMP="${PORTAGE_TMPDIR}/etc-update-$$" -trap die term - type portageq > /dev/null || exit $? eval $(portageq envvar -v CONFIG_PROTECT \ CONFIG_PROTECT_MASK PORTAGE_CONFIGROOT PORTAGE_TMPDIR ROOT USERLAND) export PORTAGE_TMPDIR +TMP="${PORTAGE_TMPDIR}/etc-update-$$" +trap die term + [ -w ${PORTAGE_CONFIGROOT}etc ] || die "Need write access to ${PORTAGE_CONFIGROOT}etc" 1 #echo $PORTAGE_TMPDIR #echo $CONFIG_PROTECT |