From aa14eaaf1c816bcc8a4e6280df0130128a03f000 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 20 Feb 2011 15:03:15 -0800 Subject: [PATCH] brew-audit - check formula versions --- Library/Contributions/examples/brew-audit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb index cf9b1c0a26..01ece830d8 100755 --- a/Library/Contributions/examples/brew-audit.rb +++ b/Library/Contributions/examples/brew-audit.rb @@ -224,6 +224,8 @@ def audit_some_formulae problems << " * 'DATA' was found, but no '__END__'" end + problems += [' * invalid or missing version'] if f.version.to_s.empty? + # Don't try remaining audits on text in __END__ text_without_patch = (text.split("__END__")[0]).strip()