diff options
| author | Martin Kühl | 2010-04-10 14:48:53 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-10 08:21:24 -0700 |
| commit | 8fa99572f94cfca174fb880fb4674598b4eed651 (patch) | |
| tree | 8bdd1c709afb44584d619945ed348eb8b1014816 | |
| parent | cfc8fca74d642d5b09d8b45a802f3114948ed32f (diff) | |
| download | brew-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>
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
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 |
