aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/bottles.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index 9a068f887..56ba8c551 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