From 9880ace3ed935d7bf735c149f0bf9f3ce72e08d1 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 21 Feb 2014 00:41:07 -0500 Subject: Formula#downloader should not be used directly --- Library/Formula/docker.rb | 2 +- Library/Formula/hub.rb | 2 +- Library/Formula/sip.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/docker.rb b/Library/Formula/docker.rb index 8256d0197..07d77d290 100644 --- a/Library/Formula/docker.rb +++ b/Library/Formula/docker.rb @@ -25,7 +25,7 @@ class Docker < Formula depends_on "go" => :build def install - ENV["GIT_DIR"] = downloader.cached_location/".git" + ENV["GIT_DIR"] = cached_download/".git" ENV["AUTO_GOPATH"] = "1" system "hack/make.sh", "dynbinary" diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb index 9772cb380..10534520b 100644 --- a/Library/Formula/hub.rb +++ b/Library/Formula/hub.rb @@ -9,7 +9,7 @@ class Hub < Formula option 'without-completions', 'Disable bash/zsh completions' def install - ENV['GIT_DIR'] = downloader.cached_location/'.git' if build.head? + ENV['GIT_DIR'] = cached_download/'.git' if build.head? rake "install", "prefix=#{prefix}" diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb index de479e522..997a5eed8 100644 --- a/Library/Formula/sip.rb +++ b/Library/Formula/sip.rb @@ -28,7 +28,7 @@ class Sip < Formula if build.head? # Link the Mercurial repository into the download directory so # build.py can use it to figure out a version number. - ln_s downloader.cached_location + ".hg", ".hg" + ln_s cached_download + ".hg", ".hg" # build.py doesn't run with python3 system "python", "build.py", "prepare" end -- cgit v1.2.3