From e2e5d4bc9da5ba17bb2822909611f8300fdd80f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?You-Sheng=20Yang=20=28=E6=A5=8A=E6=9C=89=E5=8B=9D=29?= Date: Wed, 14 Dec 2016 11:09:20 +0800 Subject: [PATCH] mkimage: add debian security updates source when available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: You-Sheng Yang (楊有勝) --- contrib/mkimage/debootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/mkimage/debootstrap b/contrib/mkimage/debootstrap index f4c4a590ea..9f7d8987ad 100755 --- a/contrib/mkimage/debootstrap +++ b/contrib/mkimage/debootstrap @@ -193,7 +193,7 @@ if [ -z "$DONT_TOUCH_SOURCES_LIST" ]; then case "$lsbDist" in debian) # updates and security! - if [ "$suite" != 'sid' -a "$suite" != 'unstable' ]; then + 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 ( set -x sed -i "