From 8a777e65c412b720b97c01097c90e76a530c2906 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 15 Jul 2014 17:05:15 -0500 Subject: [PATCH] Ensure that all required keys are passed to bottle_filename --- Library/Homebrew/bottles.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 9a068f8878..56ba8c551e 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -4,8 +4,11 @@ require 'extend/ARGV' require 'bottle_version' def bottle_filename options={} - suffix = ".#{options[:tag]}#{bottle_suffix(options[:revision])}" - "#{options[:name]}-#{options[:version]}#{suffix}" + name = options.fetch(:name) + version = options.fetch(:version) + tag = options.fetch(:tag) + revision = options.fetch(:revision) + "#{name}-#{version}.#{tag}#{bottle_suffix(revision)}" end def built_as_bottle? f