Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Fix grep usage inside pool automation
authorMichael Prokop
Thu Oct 25 14:11:40 2007 +0200 (13 months ago)
changeset 217484601d30196
manifest484601d30196
parent 216cc724de9e9de
child 218a1976bc54f97
Fix grep usage inside pool automation
grml-live
--- a/grml-live Thu Oct 25 10:16:10 2007 +0200
+++ b/grml-live Thu Oct 25 14:11:40 2007 +0200
@@ -254,7 +254,7 @@ if [ -n "$SUITE" ] ; then
sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" /etc/grml/fai/apt/sources.list
# notice: activate grml-live pool only if we are building against unstable:
if grep -qe unstable -qe sid /etc/grml/fai/apt/sources.list ; then
- grep -q 'grml-live.*main' || \
+ grep -q 'grml-live.*main' /etc/grml/fai/apt/sources.list || \
grep grml-stable /etc/grml/fai/apt/sources.list | \
sed 's/grml-stable/grml-live/' >> /etc/grml/fai/apt/sources.list
else