Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

audit: check for empty sha256 checksums

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit 2b0f50bf747946854c848de6c13bc7b68e2438c3 1 parent 9d2aebc
@jacknagel jacknagel authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Library/Homebrew/cmd/audit.rb
View
4 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}."
Please sign in to comment.
Something went wrong with that request. Please try again.