audit: check for empty sha256 checksums

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2011-11-02 18:55:27 -05:00
parent 8e2002fc27
commit 2c3b107d93

View File

@ -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}."