X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fbyhand-di;h=783c2b9fda952aba54b6c0c697b067a63f57c70b;hb=9d77b10ef77da44cf458cc808c323c253b9b8c80;hp=45b473b2a7353f16511057df241507398b4369a3;hpb=35b109fe6f42b6853809151e73be96909af7e3f7;p=dak.git diff --git a/scripts/debian/byhand-di b/scripts/debian/byhand-di index 45b473b2..783c2b9f 100755 --- a/scripts/debian/byhand-di +++ b/scripts/debian/byhand-di @@ -22,7 +22,7 @@ error() { # Check validity of version number # Expected are: YYYYMMDD, YYYYMMDD.x, YYYYMMDDx, YYYYMMDD+x, # YYYYMMDD+debXuZ and the +b[0-9] on the end -if ! echo "$VERSION" | grep -Eq "^[0-9]{8}(|(\.|\+?[a-z]+|\+deb[0-9]+u))[0-9]+(\+b[0-9])?$"; then +if ! echo "$VERSION" | grep -Eq "^[0-9]{8}((\.|\+?[a-z]+|\+deb[0-9]+u|\+kbsd[0-9]+u)[0-9]+)?(\+b[0-9])?$"; then error "Invalid version: '$VERSION'" fi