From 59de2c7ecf34c46ead29c787ce409afdc15f609c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 8 May 2016 17:18:19 +0100 Subject: [PATCH] pull: fix bottle_tag references. --- Library/Homebrew/cmd/pull.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 654461edb9..f8ea1c2f0a 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -440,7 +440,7 @@ module Homebrew info["bottle"]["stable"]["files"].keys end - def bottle_info(my_bottle_tag = bottle_tag) + def bottle_info(my_bottle_tag = Utils::Bottles.tag) tag_s = my_bottle_tag.to_s return nil unless info["bottle"]["stable"] btl_info = info["bottle"]["stable"]["files"][tag_s] @@ -453,8 +453,9 @@ module Homebrew end def any_bottle_tag + tag = Utils::Bottles.tag # Prefer native bottles as a convenience for download caching - bottle_tags.include?(bottle_tag) ? bottle_tag : bottle_tags.first + bottle_tags.include?(tag) ? tag : bottle_tags.first end def version(spec_type)