diff options
| author | Adam Vandenberg | 2010-08-08 18:25:56 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-08 18:25:56 -0700 |
| commit | 91b7000159af1f0df686891616ab175722b71f4d (patch) | |
| tree | f64590803de8f01f9bd22ce7476500d9d0b282d8 /Library | |
| parent | 0734fa000d051cbe7b3a5e2610582124a43de6ff (diff) | |
| download | brew-91b7000159af1f0df686891616ab175722b71f4d.tar.bz2 | |
brew audit - check for empty md5
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-audit.rb | 5 |
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 =~ /[ ]+$/ |
