diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-10-24 02:53:57 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-10-24 02:53:57 -0400 |
commit | 3566a26eb838d0924e9f7f3cec902674347ce272 (patch) | |
tree | 348fb340c24f6731f9d91349db755a5afee39448 | |
parent | hash_utils: fix bad keyword w/CatalystError (diff) | |
download | catalyst-3566a26eb838d0924e9f7f3cec902674347ce272.tar.gz catalyst-3566a26eb838d0924e9f7f3cec902674347ce272.tar.bz2 catalyst-3566a26eb838d0924e9f7f3cec902674347ce272.zip |
targets: handle new clst_VERBOSE behavior
During the command line rewrite, the VERBOSE setting change from
set-if-true and unset-if-false to always being set, but to true/false.
Update the scripts to check for "true" now.
-rwxr-xr-x | targets/stage2/stage2-chroot.sh | 5 | ||||
-rwxr-xr-x | targets/support/chroot-functions.sh | 4 | ||||
-rwxr-xr-x | targets/tinderbox/tinderbox-chroot.sh | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/targets/stage2/stage2-chroot.sh b/targets/stage2/stage2-chroot.sh index b426dabd..6f69a621 100755 --- a/targets/stage2/stage2-chroot.sh +++ b/targets/stage2/stage2-chroot.sh @@ -5,11 +5,6 @@ source /tmp/chroot-functions.sh # Setup the environment export FEATURES="${clst_myfeatures} nodoc noman noinfo -news" -if [ "${clst_VERBOSE}" ] -then - /usr/portage/scripts/bootstrap.sh -p ${bootstrap_opts} -fi - # Set bindist USE flag if clst_BINDIST is set # The bindist functions have been taken from support/chroot-functions.sh if [ -e "${clst_make_conf}" ] && [ -n "${clst_BINDIST}" ]; then diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index fe401578..456ae4cc 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -122,7 +122,7 @@ setup_myfeatures(){ } setup_myemergeopts(){ - if [ -n "${clst_VERBOSE}" ] + if [[ "${clst_VERBOSE}" == "true" ]] then clst_myemergeopts="--verbose" else @@ -284,7 +284,7 @@ run_merge() { export EPAUSE_IGNORE=0 export CONFIG_PROTECT="-*" - if [ -n "${clst_VERBOSE}" ] + if [[ "${clst_VERBOSE}" == "true" ]] then echo "ROOT=${ROOT} emerge ${clst_myemergeopts} -pt $@" || exit 1 emerge ${clst_myemergeopts} -pt $@ || exit 3 diff --git a/targets/tinderbox/tinderbox-chroot.sh b/targets/tinderbox/tinderbox-chroot.sh index 74e46d69..b93b4c18 100755 --- a/targets/tinderbox/tinderbox-chroot.sh +++ b/targets/tinderbox/tinderbox-chroot.sh @@ -12,7 +12,7 @@ rsync -avx --exclude "/root/" --exclude "/tmp/" --exclude "/usr/portage/" / \ for x in ${clst_tinderbox_packages} do - if [ -n "${clst_VERBOSE}" ] + if [[ "${clst_VERBOSE}" == "true" ]] then run_merge --usepkg --buildpkg --newuse -vp $x fi |