aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMartin Kühl2010-04-10 14:48:53 +0200
committerAdam Vandenberg2010-04-10 08:21:24 -0700
commit8fa99572f94cfca174fb880fb4674598b4eed651 (patch)
tree8bdd1c709afb44584d619945ed348eb8b1014816 /Library/Homebrew
parentcfc8fca74d642d5b09d8b45a802f3114948ed32f (diff)
downloadbrew-8fa99572f94cfca174fb880fb4674598b4eed651.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/Homebrew')
-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