aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-11-02 18:55:27 -0500
committerJack Nagel2011-11-02 18:55:27 -0500
commit2c3b107d93d0c90bd41baa3d393612b720d9b0d2 (patch)
tree403176448b3c7569f2e0b3ba6e8f89ae372ec780 /Library
parent8e2002fc2798597a456233bac7fab46f1bcc30fb (diff)
downloadbrew-2c3b107d93d0c90bd41baa3d393612b720d9b0d2.tar.bz2
audit: check for empty sha256 checksums
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index f2742ed30..66bf5dce0 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -84,6 +84,10 @@ def audit_formula_text name, text
problems << " * sha1 is empty"
end
+ if text =~ /sha256\s+(\'\'|\"\")/
+ problems << " * sha256 is empty"
+ end
+
# Commented-out depends_on
if text =~ /#\s*depends_on\s+(.+)\s*$/
problems << " * Commented-out dep #{$1}."