Only respect :using specs when downloading HEAD.
When a formula specifies both an `url` and a `head`, and the latter specified a `:using` spec, brew would try to fetch the `url` using the specified download strategy. With this change, brew respects `:using` specs only when determining the download strategy for `head`. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
cfc8fca74d
commit
8fa99572f9
@ -134,7 +134,7 @@ class Formula
|
|||||||
|
|
||||||
# reimplement if we don't autodetect the download strategy you require
|
# reimplement if we don't autodetect the download strategy you require
|
||||||
def download_strategy
|
def download_strategy
|
||||||
if @specs
|
if @specs and @url == @head
|
||||||
vcs = @specs.delete :using
|
vcs = @specs.delete :using
|
||||||
if vcs != nil
|
if vcs != nil
|
||||||
# If a class is passed, assume it is a download strategy
|
# If a class is passed, assume it is a download strategy
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user