Support wheezy as suite inside /etc/grml/fai/apt/sources.list.
authorMichael Prokop <mika@grml.org>
Tue, 26 Apr 2011 11:41:27 +0000 (13:41 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 26 Apr 2011 11:42:41 +0000 (13:42 +0200)
Without having wheezy as suite in the $DIST list for
/etc/grml/fai/apt/sources.list the keyword won't be switched back
to other releases once the system has been built for wheezy. :-/

grml-live

index 4409e37..230fe50 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -429,7 +429,7 @@ case $SUITE in
    *) echo "Sorry, $SUITE is not a valid Debian suite, exiting.">&2; bailout 1 ;;
 esac
 
-DIST=" etch\| stable\| lenny\| squeeze\| testing\| sid\| unstable"
+DIST=" etch\| stable\| lenny\| squeeze\| wheezy\| testing\| sid\| unstable"
 sed "s/\(^deb .\+\)\([ \t]*\)\($DIST\)\([ \t]*\)\(main \)/\1 \2$SUITE\4\5/" "$SOURCES_LIST_FILE" | sponge "$SOURCES_LIST_FILE"
 for file in "$LIVE_CONF" "$CONFIG" "$LOCAL_CONFIG" ; do
     if [ -n "$file" ] ; then