From 8fa99572f94cfca174fb880fb4674598b4eed651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20K=C3=BChl?= Date: Sat, 10 Apr 2010 14:48:53 +0200 Subject: [PATCH] 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 --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9b5e7254f3..4d67adfd6f 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -134,7 +134,7 @@ class Formula # reimplement if we don't autodetect the download strategy you require def download_strategy - if @specs + if @specs and @url == @head vcs = @specs.delete :using if vcs != nil # If a class is passed, assume it is a download strategy