aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-04-19 14:31:19 +0800
committerXu Cheng2015-04-19 20:29:52 +0800
commit64e07fc9906af8c61abd07a40bb2c5492621912b (patch)
tree9ecaadf961bb0a1402a1cbca9f8dd37c91022d9d /Library
parent2f757ee5aae8fb480118196c0e62e43b165715ca (diff)
downloadbrew-64e07fc9906af8c61abd07a40bb2c5492621912b.tar.bz2
audit: version string should not be ambiguous with revision part
Closes Homebrew/homebrew#38810. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index a17bfff29..adde76ff9 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -847,6 +847,10 @@ class ResourceAuditor
if version.to_s =~ /^v/
problem "version #{version} should not have a leading 'v'"
end
+
+ if version.to_s =~ /_\d+$/
+ problem "version #{version} should not end with a underline and a number"
+ end
end
def audit_checksum