From 1360d96fa2375b663cda1f01bef72ef5106a0b12 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 3 Aug 2009 01:23:15 +0200 Subject: [PATCH] Add check for valid Debian suite name --- debian/changelog | 2 ++ grml-live | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/debian/changelog b/debian/changelog index f558a97..2d7710c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,8 @@ grml-live (0.9.20) UNRELEASED; urgency=low to be that important for grml). - Drop windowlab (see #410618). - Drop workbone (see #429178). + * Add check for valid Debian suite name to avoid breakage of sources.list + if someone calls grml-live with a typo in the -s option. -- Michael Prokop Mon, 03 Aug 2009 01:28:48 +0200 diff --git a/grml-live b/grml-live index 0e2a49d..716fc35 100755 --- a/grml-live +++ b/grml-live @@ -378,6 +378,15 @@ if [ -n "$SUITE" ] ; then # /usr/share/debootstrap/scripts/unstable does not exist, instead use 'sid': case $SUITE in unstable) SUITE='sid' ;; + # make sure that we *NEVER* write any broken suite name to sources.list, + # otherwise we won't be able to adjust it one next (correct) execution + stable) ;; + testing) ;; + etch) ;; + lenny) ;; + squeeze) ;; + sid) ;; + *) echo "Sorry, $SUITE is not a valid Debian suite, exiting.">&2; bailout 1 ;; esac DIST=" etch\| stable\| lenny\| squeeze\| testing\| sid\| unstable" -- 2.1.4