aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-02-20 15:03:15 -0800
committerAdam Vandenberg2011-02-20 15:03:17 -0800
commitaa14eaaf1c816bcc8a4e6280df0130128a03f000 (patch)
treef74307cababd35ec05d2760e5f5296f44b10e296 /Library
parent2fb68be78d8ff4214e4bdb835bc1763e347af60d (diff)
downloadbrew-aa14eaaf1c816bcc8a4e6280df0130128a03f000.tar.bz2
brew-audit - check formula versions
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index cf9b1c0a2..01ece830d 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()