diff options
| author | Jack Nagel | 2014-07-15 17:05:15 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-15 17:05:15 -0500 |
| commit | b5d95281f4ddd2ae3bbd2a102e07153014a4f432 (patch) | |
| tree | 3d1fbec576f701c6bda3a5d562e156c2ac3130ee /Library/Homebrew/bottles.rb | |
| parent | dbf5c0776f6fdc02c9afe378793757a5a2068bf2 (diff) | |
| download | homebrew-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.rb | 7 |
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 |
