aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-02-23 21:24:51 +0000
committerMike McQuaid2015-02-23 21:29:50 +0000
commit17e81fc7cad4fd7bd000c5b8ec1f18c8163c8513 (patch)
treeab392a36090a133505d5b68a30b3d33b987a3003 /Library
parent0ed6fd731a14fbc85d5e0d64b96e107d866a7c6f (diff)
downloadhomebrew-17e81fc7cad4fd7bd000c5b8ec1f18c8163c8513.tar.bz2
bottle: --write: use canonical name with tap arg.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/bottle.rb8
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|