aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-03-11 09:16:14 -0500
committerJack Nagel2014-03-11 09:16:14 -0500
commit3668eef93d01103017bc57a96a0ef232a5dfeb70 (patch)
treef8e1e881b2fe2a6b2d3c4edbdd0babe629a5deec
parentb8bcca9221a078ee0c4e6bf9fe2137f9fa08769b (diff)
downloadhomebrew-3668eef93d01103017bc57a96a0ef232a5dfeb70.tar.bz2
Fix `brew bottle --merge`
-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 91cac596f..250f7dd66 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -186,6 +186,12 @@ module Homebrew extend self
end
end
+ module BottleMerger
+ def bottle(&block)
+ instance_eval(&block)
+ end
+ end
+
def merge
merge_hash = {}
ARGV.named.each do |argument|
@@ -198,7 +204,7 @@ module Homebrew extend self
merge_hash.each do |formula_name, bottle_blocks|
ohai formula_name
- bottle = BottleSpecification.new
+ bottle = BottleSpecification.new.extend(BottleMerger)
bottle_blocks.each { |block| bottle.instance_eval(block) }
output = bottle_output bottle