]> git.decadent.org.uk Git - dak.git/blobdiff - scripts/debian/byhand-di
byhand-di: allow YYYYMMDD+<suite>x version numbers
[dak.git] / scripts / debian / byhand-di
index 9e1b0512d0934201e1dca39dcfb9857b85cdb07f..99cb313152555496227c56f751cad15f8e66d9a8 100755 (executable)
@@ -19,8 +19,8 @@ error() {
 }
 
 # Check validity of version number
-# Expected are: YYYYMMDD, YYYYMMDD.x, YYYYMMDD<suite>x and the +b[0-9] on the end
-if ! echo "$VERSION" | grep -Eq "^[0-9]{8}(|(\.|[a-z]+)[0-9]+)(\+b[0-9])?$"; then
+# Expected are: YYYYMMDD, YYYYMMDD.x, YYYYMMDD<suite>x, YYYYMMDD+<suite>x and the +b[0-9] on the end
+if ! echo "$VERSION" | grep -Eq "^[0-9]{8}(|(\.|\+?[a-z]+)[0-9]+)(\+b[0-9])?$"; then
        error "Invalid version: '$VERSION'"
 fi