aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-11-01 09:25:06 -0800
committerMike McQuaid2015-11-01 09:26:43 -0800
commit39a1ff2aa0f8a3ebc0b08059428bb87acea67097 (patch)
tree0482c584e5f139779831886a949accd2bcb543a8 /Library/Homebrew/cmd/audit.rb
parent2614d39087e90b78cc22c50f2830c6caabdc0bec (diff)
downloadbrew-39a1ff2aa0f8a3ebc0b08059428bb87acea67097.tar.bz2
audit: don't flag Gnome devel releases < 1.0.
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
-rw-r--r--Library/Homebrew/cmd/audit.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index b33245647..1d293994f 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -548,10 +548,12 @@ class FormulaAuditor
stable = formula.stable
case stable && stable.url
when %r{download\.gnome\.org/sources}, %r{ftp\.gnome\.org/pub/GNOME/sources}i
- minor_version = Version.parse(stable.url).to_s.split(".", 3)[1].to_i
-
- if minor_version.odd?
- problem "#{stable.version} is a development release"
+ version = Version.parse(stable.url)
+ if version >= Version.new("1.0")
+ minor_version = version.to_s.split(".", 3)[1].to_i
+ if minor_version.odd?
+ problem "#{stable.version} is a development release"
+ end
end
end
end