audit: github repo: verify stable formula is set .

This commit is contained in:
Mike McQuaid 2015-07-08 16:22:42 +01:00
parent ec4bfee3e7
commit 804f1431d4

View File

@ -426,7 +426,7 @@ class FormulaAuditor
return unless @strict return unless @strict
regex = %r{https?://github.com/([^/]+)/([^/]+)/?.*} regex = %r{https?://github.com/([^/]+)/([^/]+)/?.*}
_, user, repo = *regex.match(formula.stable.url) _, user, repo = *regex.match(formula.stable.url) if formula.stable
_, user, repo = *regex.match(formula.homepage) unless user _, user, repo = *regex.match(formula.homepage) unless user
return if !user || !repo return if !user || !repo