audit: deprecate sha1 always.

Rather than just when --strict is set. We're asking people to do these
on most PRs now anyway so feels better to let them find this out with
`brew audit`.

Closes Homebrew/homebrew#41523.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2015-07-09 13:44:41 +01:00
parent e949a5fd46
commit 4f74e891aa

View File

@ -947,12 +947,8 @@ class ResourceAuditor
problem "MD5 checksums are deprecated, please use SHA256"
return
when :sha1
if ARGV.include? "--strict"
problem "SHA1 checksums are deprecated, please use SHA256"
return
else
len = 40
end
problem "SHA1 checksums are deprecated, please use SHA256"
return
when :sha256 then len = 64
end