Extend gnome stable/unstable audit to download.gnome.org URLs
This commit is contained in:
parent
68a654dd26
commit
c16a1d9aba
@ -349,8 +349,9 @@ class FormulaAuditor
|
|||||||
end
|
end
|
||||||
|
|
||||||
stable = formula.stable
|
stable = formula.stable
|
||||||
if stable && stable.url =~ /#{Regexp.escape("ftp.gnome.org/pub/GNOME/sources")}/i
|
case stable && stable.url
|
||||||
minor_version = stable.version.to_s[/\d\.(\d+)/, 1].to_i
|
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?
|
if minor_version.odd?
|
||||||
problem "#{stable.version} is a development release"
|
problem "#{stable.version} is a development release"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user