aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-07 18:52:21 +0100
committerAdam Vandenberg2012-06-06 07:04:51 -0700
commit73d047d3ac4fd2d3b6fc87caf92f9e08b5bcb1e9 (patch)
tree1781fba736735d7165e392c26c1d669ff8d77547 /Library
parent1cce85b1f1946279ecbcbbc0e459071e19ccf6fc (diff)
downloadbrew-73d047d3ac4fd2d3b6fc87caf92f9e08b5bcb1e9.tar.bz2
Use sha1 as the default checksum for new formulae
See: https://github.com/mxcl/homebrew/pull/12587
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/create.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index 5ba7aefb5..dbb40dc29 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -57,7 +57,7 @@ end
class FormulaCreator
attr :url
- attr :md5
+ attr :sha1
attr :name, true
attr :path, true
attr :mode, true
@@ -89,7 +89,7 @@ class FormulaCreator
unless ARGV.include? "--no-fetch" and version
strategy = detect_download_strategy url
- @md5 = strategy.new(url, name, version, nil).fetch.md5 if strategy == CurlDownloadStrategy
+ @sha1 = strategy.new(url, name, version, nil).fetch.sha1 if strategy == CurlDownloadStrategy
end
path.write ERB.new(template, nil, '>').result(binding)
@@ -104,7 +104,7 @@ class FormulaCreator
class #{Formula.class_s name} < Formula
homepage ''
url '#{url}'
- md5 '#{md5}'
+ sha1 '#{sha1}'
<% if mode == :cmake %>
depends_on 'cmake' => :build