From 4d006b4098e5f77982bcb4a3fd6cb2e85e6eb28f Mon Sep 17 00:00:00 2001 From: Mattias Jernberg Date: Wed, 5 Dec 2018 19:35:17 +0100 Subject: [PATCH] mkimage: Fix Debian security presence check Add Location following since security redirects to security-cdn and caused the repository to be added on Debian unstable. Signed-off-by: Mattias Jernberg Origin: upstream, https://github.com/docker/engine/commit/8db5403 Gbp-Pq: Name engine-contrib-debootstrap-curl-follow-location.patch --- engine/contrib/mkimage/debootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/contrib/mkimage/debootstrap b/engine/contrib/mkimage/debootstrap index 9f7d8987..a919429b 100755 --- a/engine/contrib/mkimage/debootstrap +++ b/engine/contrib/mkimage/debootstrap @@ -193,7 +193,7 @@ if [ -z "$DONT_TOUCH_SOURCES_LIST" ]; then case "$lsbDist" in debian) # updates and security! - if curl -o /dev/null -s --head --fail "http://security.debian.org/dists/$suite/updates/main/binary-$(rootfs_chroot dpkg --print-architecture)/Packages.gz"; then + if curl -o /dev/null -s --head --location --fail "http://security.debian.org/dists/$suite/updates/main/binary-$(rootfs_chroot dpkg --print-architecture)/Packages.gz"; then ( set -x sed -i " -- 2.30.2