From dcbbfed463280e1056740e57b00a1e5d56d6833b Mon Sep 17 00:00:00 2001 From: Roland Clobus Date: Sun, 13 Nov 2022 11:19:00 +0000 Subject: [PATCH] installer: fail early If e.g. the required packages for the git build cannot be installed, abort early instead of attempting to build the installer. --- scripts/build/installer_debian-installer | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer index b7ca4dd4a..770c11ad2 100755 --- a/scripts/build/installer_debian-installer +++ b/scripts/build/installer_debian-installer @@ -269,6 +269,9 @@ case "${LB_DERIVATIVE}" in cat << EOF > chroot/buildit.sh #!/bin/sh # Get the version of the git repo that matches SOURCE_DATE_EPOCH + +set -e + DEBIAN_INSTALLER=/debian-installer mkdir -p \${DEBIAN_INSTALLER} git clone https://salsa.debian.org/installer-team/debian-installer.git \${DEBIAN_INSTALLER} --single-branch --no-tags --quiet