aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2011-11-02 18:55:27 -0500
committerJack Nagel2011-11-02 18:55:27 -0500
commit2b0f50bf747946854c848de6c13bc7b68e2438c3 (patch)
treed136b2f4a2ff4712e1fb489bcc3b4de78f3179eb /Library/Homebrew
parent9d2aebc688b3eedd75dc8c5ef53142dd7f19ffd1 (diff)
downloadhomebrew-2b0f50bf747946854c848de6c13bc7b68e2438c3.tar.bz2
audit: check for empty sha256 checksums
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-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}."