From c16a1d9aba841fd69627af9e906d4833ab66a0d3 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 14 May 2015 00:01:00 -0400 Subject: [PATCH] Extend gnome stable/unstable audit to download.gnome.org URLs --- Library/Homebrew/cmd/audit.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index d0f5d5d056..656029efd5 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -349,8 +349,9 @@ class FormulaAuditor end stable = formula.stable - if stable && stable.url =~ /#{Regexp.escape("ftp.gnome.org/pub/GNOME/sources")}/i - minor_version = stable.version.to_s[/\d\.(\d+)/, 1].to_i + 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"