From df82d28c3cfd3b8b16ce2494e4a115af968122fb Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Sun, 23 May 2010 21:38:11 +0200 Subject: [PATCH] Refactoring: Make check for sources.list more readable --- hooks/debian/20-setup-apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/debian/20-setup-apt b/hooks/debian/20-setup-apt index e008d39..0d9353f 100755 --- a/hooks/debian/20-setup-apt +++ b/hooks/debian/20-setup-apt @@ -78,7 +78,7 @@ E_O_APT # # If the host system has security support then enable that here too. # -if ( test '!' -e /etc/apt/sources.list || \ +if ( 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