From 2017df2408d7a815e4594d93501e3253b8d799ca Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 28 May 2011 15:00:58 +0200 Subject: [PATCH] sources.list handling: match "sid" and "unstable" only as whole words. When we grep for "sid" this matches the string "consider", so make sure we consider "sid" (and "unstable" while at it as well) only if it's being used as a whole word. Thanks to Andreas Korsten for reporting. --- grml-live | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grml-live b/grml-live index 0c27ce1..95e3dab 100755 --- a/grml-live +++ b/grml-live @@ -439,7 +439,7 @@ for file in "$LIVE_CONF" "$CONFIG" "$LOCAL_CONFIG" ; do done # notice: activate grml-live pool only if we are building against unstable: -if grep -qe unstable -qe sid "$SOURCES_LIST_FILE" ; then +if grep -qwe unstable -qwe sid "$SOURCES_LIST_FILE" ; then grep -q 'grml-live.*main' "$SOURCES_LIST_FILE" || \ grep grml-stable "$SOURCES_LIST_FILE" | \ sed 's/grml-stable/grml-live/' >> "$SOURCES_LIST_FILE" -- 2.1.4