aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-10-24 14:54:28 +0100
committerMike McQuaid2016-10-24 14:54:28 +0100
commitb39f87e710377001a635c7389034ca7830355b9a (patch)
tree5274e424c127eb5453309bff122ae944b8cfcd75 /Library/Homebrew/dev-cmd
parent0c140f0970c4d4de81e8233913daa7fc768defad (diff)
downloadbrew-b39f87e710377001a635c7389034ca7830355b9a.tar.bz2
audit: check for alpha/beta/rc usage in URLs.
Stable URLs should not use unstable versions.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 12eaf9167..311a961dc 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -637,6 +637,8 @@ class FormulaAuditor
stable = formula.stable
case stable && stable.url
+ when /[\d\._-](alpha|beta|rc\d)/
+ problem "Stable version URLs should not contain #{$1}"
when %r{download\.gnome\.org/sources}, %r{ftp\.gnome\.org/pub/GNOME/sources}i
version = Version.parse(stable.url)
if version >= Version.create("1.0")