diff options
| author | Xu Cheng | 2015-04-19 14:31:19 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-04-19 20:29:52 +0800 |
| commit | c08021c8c42b603662d3cae3c68ead1647017714 (patch) | |
| tree | c885c5c0f442c88641a459636465b1bff0e934bc /Library/Homebrew | |
| parent | 3d14d391be115f1aaef575665bb4529f565789a5 (diff) | |
| download | homebrew-c08021c8c42b603662d3cae3c68ead1647017714.tar.bz2 | |
audit: version string should not be ambiguous with revision part
Closes #38810.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
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 |
