From: Ansgar Burchardt Date: Mon, 14 Oct 2013 12:14:34 +0000 (+0200) Subject: byhand-di: fix version match X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=14c267e0eaa8b921307574f6c10cd3964ee0a381;p=dak.git byhand-di: fix version match 35b109fe6f42b6853809151e73be96909af7e3f7 made the script reject uploads using YYYYMMDD as a closing ")" was at the wrong location. --- diff --git a/scripts/debian/byhand-di b/scripts/debian/byhand-di index 45b473b2..3ba2f005 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)[0-9]+)?(\+b[0-9])?$"; then error "Invalid version: '$VERSION'" fi