diff options
| author | Jack Nagel | 2014-07-15 17:05:15 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-15 17:05:15 -0500 |
| commit | 8a777e65c412b720b97c01097c90e76a530c2906 (patch) | |
| tree | 6f34116d6e4036c57bfdb87eaee30de3955d02b4 | |
| parent | a3dad588a855238b3576b59e90fd062b19cf55e0 (diff) | |
| download | brew-8a777e65c412b720b97c01097c90e76a530c2906.tar.bz2 | |
Ensure that all required keys are passed to bottle_filename
| -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 |
