Merge pull request #38323 from nostrad/fix-deb-security-check

mkimage: Fix Debian security presence check
This commit is contained in:
Sebastiaan van Stijn 2018-12-08 18:27:42 +01:00 committed by GitHub
commit edf5134ba7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 "