diff options
author | Matt Turner <mattst88@gentoo.org> | 2020-12-14 22:52:40 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2020-12-16 11:02:12 -0500 |
commit | 6cc91ad95f55a7e54a627e25953414d84d9646ca (patch) | |
tree | 8692f0ab605e365b4f7e25c2fb56d67010711ab4 | |
parent | targets: Make ${buildpkgs} an array (diff) | |
download | catalyst-6cc91ad95f55a7e54a627e25953414d84d9646ca.tar.gz catalyst-6cc91ad95f55a7e54a627e25953414d84d9646ca.tar.bz2 catalyst-6cc91ad95f55a7e54a627e25953414d84d9646ca.zip |
targets: Move ${buildpkgs} error checking closer
Signed-off-by: Matt Turner <mattst88@gentoo.org>
(cherry picked from commit 5f62563f52a81b578703f140361a5fcec96e75e5)
-rwxr-xr-x | targets/stage1/stage1-chroot.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh index df86487e..4cd0f29f 100755 --- a/targets/stage1/stage1-chroot.sh +++ b/targets/stage1/stage1-chroot.sh @@ -5,12 +5,6 @@ source /tmp/chroot-functions.sh # We do this first, so we know our package list for --debug buildpkgs=($(/tmp/build.py)) -# Setup our environment -[ -n "${clst_BINDIST}" ] && BINDIST="bindist" -BOOTSTRAP_USE="$(portageq envvar BOOTSTRAP_USE)" - -FEATURES="${clst_myfeatures} nodoc noman noinfo -news" - ## Sanity check profile if [[ ${#buildpkgs[@]} -eq 0 ]]; then echo "Your profile seems to be broken." @@ -19,6 +13,12 @@ if [[ ${#buildpkgs[@]} -eq 0 ]]; then exit 1 fi +# Setup our environment +[ -n "${clst_BINDIST}" ] && BINDIST="bindist" +BOOTSTRAP_USE="$(portageq envvar BOOTSTRAP_USE)" + +FEATURES="${clst_myfeatures} nodoc noman noinfo -news" + # We need to ensure the base stage3 has USE="bindist" # if BINDIST is set to avoid issues with openssl / openssh [ -e ${clst_make_conf} ] && echo "USE=\"${BINDIST} ${USE}\"" >> ${clst_make_conf} |