brew audit - check for empty md5
This commit is contained in:
parent
0734fa000d
commit
91b7000159
@ -50,6 +50,11 @@ ff.each do |f|
|
|||||||
problems << " * \"#{$1}\" should be \"\#{#{$2}}\""
|
problems << " * \"#{$1}\" should be \"\#{#{$2}}\""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Empty checksums
|
||||||
|
if text =~ /md5\s+\'\'/
|
||||||
|
problems << " * md5 is empty"
|
||||||
|
end
|
||||||
|
|
||||||
# Don't complain about spaces in patches
|
# Don't complain about spaces in patches
|
||||||
split_patch = (text.split("__END__")[0]).strip()
|
split_patch = (text.split("__END__")[0]).strip()
|
||||||
if split_patch =~ /[ ]+$/
|
if split_patch =~ /[ ]+$/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user