diff options
| author | Mike McQuaid | 2013-02-09 19:05:53 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-01 17:49:09 +0000 |
| commit | 22aec1d0d97ee20fdc31e2df278378fe17f9d07f (patch) | |
| tree | c4fff084e50c4b53fe7b59d39273d271d9468eca /Library/Homebrew/bottles.rb | |
| parent | 443bf9f287090d5c2d309e86b2673b57744dab8c (diff) | |
| download | brew-22aec1d0d97ee20fdc31e2df278378fe17f9d07f.tar.bz2 | |
Add custom bottle URL support.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/bottles.rb')
| -rw-r--r-- | Library/Homebrew/bottles.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index d474a6f65..7962a50e1 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -70,6 +70,11 @@ def bottle_regex Pathname::BOTTLE_EXTNAME_RX end -def bottle_base_url - "https://downloads.sf.net/project/machomebrew/Bottles/" +def bottle_root_url f + root_url = f.bottle.root_url + root_url ||= 'https://downloads.sf.net/project/machomebrew/Bottles' +end + +def bottle_url f + "#{bottle_root_url(f)}/#{bottle_filename(f)}" end |
