Audit check for gnome unstable as stable

This commit is contained in:
Jack Nagel 2015-01-22 16:58:54 -05:00
parent aec2f01a55
commit 165b47c0e6

View File

@ -378,6 +378,15 @@ class FormulaAuditor
problem "stable and devel versions are identical"
end
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
if minor_version.odd?
problem "#{stable.version} is a development release"
end
end
end
def audit_patches