diff options
| author | Mike McQuaid | 2015-02-23 21:24:51 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-23 21:29:50 +0000 |
| commit | 30a8d8e470ea75e5796b7df9591a676a1a6fa429 (patch) | |
| tree | 140debc8ae964173928c65ca9f9080dd2ebb2d9f /Library/Homebrew/cmd | |
| parent | c7d07bcabd5e8318f983e27c31f78a27a6fdad32 (diff) | |
| download | brew-30a8d8e470ea75e5796b7df9591a676a1a6fa429.tar.bz2 | |
bottle: --write: use canonical name with tap arg.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index ae3c1a154..597e2fe9b 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -237,7 +237,13 @@ module Homebrew puts output if ARGV.include? '--write' - f = Formulary.factory(formula_name) + tap = ARGV.value('tap') + canonical_formula_name = if tap + "#{tap}/#{formula_name}" + else + formula_name + end + f = Formulary.factory(canonical_formula_name) update_or_add = nil Utils::Inreplace.inreplace(f.path) do |s| |
