From 30a8d8e470ea75e5796b7df9591a676a1a6fa429 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 23 Feb 2015 21:24:51 +0000 Subject: [PATCH] bottle: --write: use canonical name with tap arg. --- Library/Homebrew/cmd/bottle.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index ae3c1a154e..597e2fe9b4 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|