aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottles.rb
diff options
context:
space:
mode:
authorJack Nagel2014-07-15 17:05:15 -0500
committerJack Nagel2014-07-15 17:05:15 -0500
commitb5d95281f4ddd2ae3bbd2a102e07153014a4f432 (patch)
tree3d1fbec576f701c6bda3a5d562e156c2ac3130ee /Library/Homebrew/bottles.rb
parentdbf5c0776f6fdc02c9afe378793757a5a2068bf2 (diff)
downloadhomebrew-b5d95281f4ddd2ae3bbd2a102e07153014a4f432.tar.bz2
Ensure that all required keys are passed to bottle_filename
Diffstat (limited to 'Library/Homebrew/bottles.rb')
-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