Formula-Cookbook: update download strategy example
The new one uses sha256 instead of md5 and the urls still work and are all https, too. Closes Homebrew/homebrew#40455. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
e5186c1541
commit
a8caf3636c
@ -619,11 +619,11 @@ end
|
|||||||
To use one of Homebrew’s built-in download strategies, specify the `:using =>` flag on a `url` or `head`. For example:
|
To use one of Homebrew’s built-in download strategies, specify the `:using =>` flag on a `url` or `head`. For example:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class Sip < Formula
|
class Python3 < Formula
|
||||||
url "http://www.riverbankcomputing.co.uk/hg/sip/archive/4.11"
|
homepage "https://www.python.org/"
|
||||||
md5 "dbafd7101a4e7caee6f529912a1356e5"
|
url "https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz"
|
||||||
head "http://www.riverbankcomputing.co.uk/hg/sip", :using => :hg
|
sha256 "b5b3963533768d5fc325a4d7a6bd6f666726002d696f1d399ec06b043ea996b8"
|
||||||
homepage "http://www.riverbankcomputing.co.uk/software/sip"
|
head "https://hg.python.org/cpython", :using => :hg
|
||||||
```
|
```
|
||||||
|
|
||||||
The downloaders offered by Homebrew are:
|
The downloaders offered by Homebrew are:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user