From e1c1793232dcd9cd7362d44861d00fd02f0bdde5 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Sun, 23 May 2010 21:40:30 +0200 Subject: [PATCH] Do not add security support if we're installing Sid --- hooks/debian/20-setup-apt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hooks/debian/20-setup-apt b/hooks/debian/20-setup-apt index 0d9353f..9c8189b 100755 --- a/hooks/debian/20-setup-apt +++ b/hooks/debian/20-setup-apt @@ -76,9 +76,11 @@ E_O_APT # -# If the host system has security support then enable that here too. +# If the host system has security support then enable that here, too, +# except if we're installing Debian Unstable. # -if ( test -e /etc/apt/sources.list && \ +if ( test "${dist}" '!=' 'sid' && test "${dist}" '!=' 'unstable' && \ + test -e /etc/apt/sources.list && \ grep ^deb.*security -r /etc/apt/sources.list /etc/apt/sources.list.d >/dev/null 2>/dev/null ) ; then cat <> ${prefix}/etc/apt/sources.list