aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Kühl2010-04-10 14:48:53 +0200
committerAdam Vandenberg2010-04-10 08:21:24 -0700
commitb57dec71fbcfc47569453f8f8c95c82f9786b8cf (patch)
tree7e2644c7c15cf6a1d01f0c0dde51caeb8448e7f9 /Library
parent4578491fab6c2bc37bd7de5cf7e4bc0d1eaba60b (diff)
downloadhomebrew-b57dec71fbcfc47569453f8f8c95c82f9786b8cf.tar.bz2
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>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 9b5e7254f..4d67adfd6 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