From 5b3e9b37eee0ce49aaba4c5cc2bf22428f7edf29 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 14 Sep 2010 16:13:57 -0700 Subject: brew-audit - empty checksums with either type of quote --- Library/Contributions/examples/brew-audit.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library') 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}." -- cgit v1.2.3