# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 21 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/support/chroot-functions.sh:
+ OK, we shouldn't use which to find env-update, since /usr/sbin isn't in the
+ PATH by default. Instead, simply check if it exists.
+
21 Feb 2008; Andrew Gaffney <agaffney@gentoo.org>
targets/support/chroot-functions.sh:
Remove temporary package listing code, since --verbose is forced on with
}
update_env_settings(){
- which env-update > /dev/null 2>&1
- ret=$?
- if [ $ret -eq 0 ]
- then
- ENV_UPDATE=`which env-update`
- ${ENV_UPDATE}
- else
- echo "WARNING: env-update not found, skipping!"
- fi
+ [ -x /usr/sbin/env-update ] && /usr/sbin/env-update
source /etc/profile
[ -f /tmp/envscript ] && source /tmp/envscript
}
# TODO: grab our entire env
# <zmedico> to get see the ebuild env you can do something like:
# `set > /tmp/env_dump.${EBUILD_PHASE}` inside /etc/portage/bashrc
+ # XXX: Also, portageq does *not* source profile.bashrc at any time.
echo
echo "STAGE1_USE: $(portageq envvar STAGE1_USE)"
echo