aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-09-02 01:25:36 -0700
committerMike McQuaid2012-09-03 11:20:07 -0700
commit0b3327b862bc4404a7cf2dd1ff2549346e5068fb (patch)
tree09ec5623b9a4181cce6ca04c1b37e02992ba5530 /Library
parenta22e60ee8c06f3be3256a71bbd65f8462d258876 (diff)
downloadbrew-0b3327b862bc4404a7cf2dd1ff2549346e5068fb.tar.bz2
brew-audit: recommend SHA1 over MD5.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 8244d40aa..b0efe040f 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -233,6 +233,8 @@ class FormulaAuditor
when :sha256 then 64
end
+ problem "md5 is broken, deprecated: use sha1 instead" if cksum.hash_type == :md5
+
if cksum.empty?
problem "#{cksum.hash_type} is empty"
else