projects
/
dak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76401d1
)
byhand-di: fix version match
author
Ansgar Burchardt
<ansgar@debian.org>
Mon, 14 Oct 2013 12:14:34 +0000
(14:14 +0200)
committer
Ansgar Burchardt
<ansgar@debian.org>
Mon, 14 Oct 2013 12:14:34 +0000
(14:14 +0200)
35b109fe6f42b6853809151e73be96909af7e3f7
made the script reject uploads using
YYYYMMDD as a closing ")" was at the wrong location.
scripts/debian/byhand-di
patch
|
blob
|
history
diff --git
a/scripts/debian/byhand-di
b/scripts/debian/byhand-di
index 45b473b2a7353f16511057df241507398b4369a3..3ba2f0057310ebcceac24592c2226c30c9301cf6 100755
(executable)
--- 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, YYYYMMDD<suite>x, YYYYMMDD+<suite>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