From: Mattias Jernberg Date: Wed, 5 Dec 2018 18:35:17 +0000 (+0100) Subject: mkimage: Fix Debian security presence check X-Git-Tag: archive/raspbian/18.09.9+dfsg1-5+rpi1~1^2^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e1ef22ac786ee2346fa3d21bb1ad50b5094755de;p=docker.io.git 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 --- 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 "