aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-14 16:13:57 -0700
committerAdam Vandenberg2010-09-14 16:13:57 -0700
commit5b3e9b37eee0ce49aaba4c5cc2bf22428f7edf29 (patch)
treeea0dddc1205ebf7c13a90086464ed6d39756d997 /Library
parentff89654f88d691a5957e5a8023318f1d1242aa8f (diff)
downloadhomebrew-5b3e9b37eee0ce49aaba4c5cc2bf22428f7edf29.tar.bz2
brew-audit - empty checksums with either type of quote
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index 7faec98cb..3a39bbf92 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -66,10 +66,14 @@ def audit_formula_text text
end
# Empty checksums
- if text =~ /md5\s+\'\'/
+ if text =~ /md5\s+(\'\'|\"\")/
problems << " * md5 is empty"
end
+ if text =~ /sha1\s+(\'\'|\"\")/
+ problems << " * sha1 is empty"
+ end
+
# Commented-out depends_on
if text =~ /#\s*depends_on\s+(.+)\s*$/
problems << " * Commented-out dep #{$1}."