mkimage: add debian security updates source when available

Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>
Upstream-commit: e2e5d4bc9da5ba17bb2822909611f8300fdd80f0
Component: engine
This commit is contained in:
You-Sheng Yang (楊有勝)
2016-12-14 23:23:00 +08:00
parent 6abf315fff
commit 53db845317
@@ -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 "