aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-07-09 13:44:41 +0100
committerMike McQuaid2015-07-09 17:45:53 +0100
commit4f74e891aaffbb7357abe90a64196a3e2e6bd2f3 (patch)
treeedad7795a0ded6a3d9826dbe5633ec715628eef7 /Library/Homebrew/cmd/audit.rb
parente949a5fd4637c3b4b2605aebff384673e93ce322 (diff)
downloadbrew-4f74e891aaffbb7357abe90a64196a3e2e6bd2f3.tar.bz2
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>
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
-rw-r--r--Library/Homebrew/cmd/audit.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index e4e20d5fd..cdd8eaddf 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