aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-08 18:25:56 -0700
committerAdam Vandenberg2010-08-08 18:25:56 -0700
commita1cc843b53075983e28b53d63440d9bd705d8a7d (patch)
treec1800c42e9ee10e8d9fdd40fadc6af7ac3b4d198 /Library
parentd720c01d776cd0aaba540b9814c9002ccb87e70d (diff)
downloadhomebrew-a1cc843b53075983e28b53d63440d9bd705d8a7d.tar.bz2
brew audit - check for empty md5
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index cd838cced..e4e7d14de 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -50,6 +50,11 @@ ff.each do |f|
problems << " * \"#{$1}\" should be \"\#{#{$2}}\""
end
+ # Empty checksums
+ if text =~ /md5\s+\'\'/
+ problems << " * md5 is empty"
+ end
+
# Don't complain about spaces in patches
split_patch = (text.split("__END__")[0]).strip()
if split_patch =~ /[ ]+$/