Break when using unsupported generic codenames "stable" or "testing"
authorPatrick Schleizer <adrelanos@riseup.net>
Sat, 29 Nov 2014 16:23:02 +0000 (16:23 +0000)
committerMichael Prokop <mika@grml.org>
Fri, 27 Feb 2015 13:46:00 +0000 (14:46 +0100)
Fixes #37 (GH-37, PR 43)

grml-debootstrap

index 7a71239..a97f5ec 100755 (executable)
@@ -821,6 +821,14 @@ if [ "$CURRENT_ARCH" != "x86_64" ] ; then
 fi
 # }}}
 
+# Support for generic release codenames is unavailable. {{{
+if [ "$RELEASE" = "stable" ] || [ "$RELEASE" = "testing" ] ; then
+   eerror "Generic release codenames (stable, testing) are unsupported. \
+Please use specific codenames such as lenny, squeeze, wheezy or jessie." ; eend 1
+   bailout 1
+fi
+# }}}
+
 checkconfiguration
 
 # finally make sure at least $TARGET is set [the partition for the new system] {{{