From 4f74e891aaffbb7357abe90a64196a3e2e6bd2f3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid <mike@mikemcquaid.com> Date: Thu, 9 Jul 2015 13:44:41 +0100 Subject: [PATCH] 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> --- Library/Homebrew/cmd/audit.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index e4e20d5fda..cdd8eaddfa 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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 -- GitLab