From 04c5aae0a97fac04c92b864fb1b3484354acded0 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Tue, 7 Apr 2020 16:33:57 +0100 Subject: chroot_prep: warn if running archives helper for bootstrap stage to protect against simple mistake of using 'all' instead of 'all-except-archives' when manually executing scripts (e.g. during development) at the bootstrap stage level. (the bootstrap stage does not and should not use the archives helper). Gbp-Dch: Ignore --- scripts/build/chroot_prep | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/build/chroot_prep b/scripts/build/chroot_prep index 3fac53852..8de0e4e29 100755 --- a/scripts/build/chroot_prep +++ b/scripts/build/chroot_prep @@ -94,6 +94,10 @@ if In_list "archives" ${HELPERS} && [ -z "${ARCHIVES_PASS}" ]; then exit 1 fi +if In_list "archives" ${HELPERS} && [ ! -e .build/bootstrap ]; then + Echo_warning "The 'archives' helper is selected, but the bootstrap stage has not completed." +fi + if [ "${_ACTION}" = "remove" ]; then HELPERS_REVERSED="" for HELPER in $HELPERS; do -- cgit v1.2.3