From 57ab08226514e2270e423cce77accaff565d5a64 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 19 Jul 2011 10:13:10 +0200 Subject: Using --no-check-gpg option when using debootstrap >= 1.0.30 and apt secure is disabled, thanks to Eugenio Paolantonio (Closes: #633356). --- scripts/build/lb_bootstrap_debootstrap | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/build/lb_bootstrap_debootstrap') diff --git a/scripts/build/lb_bootstrap_debootstrap b/scripts/build/lb_bootstrap_debootstrap index bcc098043..1b5f5fe05 100755 --- a/scripts/build/lb_bootstrap_debootstrap +++ b/scripts/build/lb_bootstrap_debootstrap @@ -103,6 +103,13 @@ then DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --verbose" fi +# If LB_APT_SECURE is false, do not check signatures of the Release file +# (requires debootstrap >= 1.0.30) +if [ "${LB_APT_SECURE}" = "false" ] && /usr/sbin/debootstrap --help | grep -qs '\-\-no-check-gpg' +then + DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --no-check-gpg" +fi + if [ -x "/usr/sbin/debootstrap" ] then if [ "${LB_CACHE_PACKAGES}" = "true" ] -- cgit v1.2.3