From 5c9bdb3231969bc0660ca53847474fd0628b4f07 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 11 Mar 2011 11:17:25 +0100 Subject: [PATCH 1/1] Add security.debian.org to sources.list (except for unstable/sid). [Closes: issue967] Signed-off-by: Michael Prokop --- chroot-script | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/chroot-script b/chroot-script index 00bcb6b..470a111 100755 --- a/chroot-script +++ b/chroot-script @@ -61,9 +61,23 @@ chrootmirror() { if [ -n "$ISO" ] ; then echo "deb $ISO $RELEASE $COMPONENTS" > /etc/apt/sources.list [ -n "$MIRROR" ] && echo "deb $MIRROR $RELEASE $COMPONENTS" >> /etc/apt/sources.list || true + # add security.debian.org: + case "$RELEASE" in + unstable|sid) ;; # no security pool available + *) + echo "deb http://security.debian.org ${RELEASE}/updates $COMPONENTS" >> /etc/apt/sources.list + ;; + esac else if [ -n "$MIRROR" ] ; then echo "deb $MIRROR $RELEASE $COMPONENTS" > /etc/apt/sources.list + # add security.debian.org: + case "$RELEASE" in + unstable|sid) ;; # no security pool available + *) + echo "deb http://security.debian.org ${RELEASE}/updates $COMPONENTS" >> /etc/apt/sources.list + ;; + esac fi fi } -- 2.1.4