Browse code

mkimage: add debian security updates source when available

Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>

You-Sheng Yang (楊有勝) authored on 2016/12/14 12:09:20
Showing 1 changed files
... ...
@@ -193,7 +193,7 @@ if [ -z "$DONT_TOUCH_SOURCES_LIST" ]; then
193 193
 	case "$lsbDist" in
194 194
 		debian)
195 195
 			# updates and security!
196
-			if [ "$suite" != 'sid' -a "$suite" != 'unstable' ]; then
196
+			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
197 197
 				(
198 198
 					set -x
199 199
 					sed -i "