summary refs log tree commit diff
diff options
context:
space:
mode:
authorToyam Cox <Vaelatern@gmail.com>2016-03-27 23:19:20 -0400
committerChristian Neukirchen <chneukirchen@gmail.com>2016-03-28 16:27:36 +0200
commit84c4c68b88252247a518aafa3672dce9244455c7 (patch)
tree0a8dc232140972e9a91e66bde7213acd5376ebff
parent6e9db35aa2b70c8c2cd5d6be54a9ceb8f47f0244 (diff)
downloadxtools-84c4c68b88252247a518aafa3672dce9244455c7.tar.gz
xtools-84c4c68b88252247a518aafa3672dce9244455c7.tar.xz
xtools-84c4c68b88252247a518aafa3672dce9244455c7.zip
xlint: forbid special character - in version
Closes: #39 [via git-merge-pr]
-rwxr-xr-xxlint1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlint b/xlint
index 0bbcfee..a6363bc 100755
--- a/xlint
+++ b/xlint
@@ -149,6 +149,7 @@ for template; do
 	scan '[\t ]$' "trailing whitespace"
 	scan '[^\\]`' "use \$() instead of backticks"
 	scan 'revision=0' "revision must not be zero"
+	scan 'version=.*[:-].*' "version must not contain the characters : or -"
 	scan 'replaces=(?=.*\w)[^<>]*$' "replaces needs depname with version"
 	scan 'maintainer=(?!.*<.*@.*>).*' "maintainer needs email address"
 	scan 'nonfree=' "use repository=nonfree"