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
commit581d35a087a7469511bc6e5dce5526ef977ad260 (patch)
tree8375a908141e0cf72151085a3f0fd5ea738fd8c3 /Library
parent12dceba8203e1a06d13056fae5be6811cb60d320 (diff)
downloadbrew-581d35a087a7469511bc6e5dce5526ef977ad260.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}."