aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottles.rb
diff options
context:
space:
mode:
authorJack Nagel2014-07-13 19:29:36 -0500
committerJack Nagel2014-07-13 19:29:36 -0500
commit35be8731c0aac9aca325ab97ace3636b00ae4774 (patch)
tree28a1cb046e1386206021a3d5312aab406bd591c9 /Library/Homebrew/bottles.rb
parentad05dbb8a865bda851a475de92d361a4647b5b49 (diff)
downloadhomebrew-35be8731c0aac9aca325ab97ace3636b00ae4774.tar.bz2
Inline method so we don't merge and unpack options twice
Diffstat (limited to 'Library/Homebrew/bottles.rb')
-rw-r--r--Library/Homebrew/bottles.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index 278dc656e..e9ee8c5da 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -5,7 +5,8 @@ require 'bottle_version'
def bottle_filename options={}
options = { :tag => bottle_tag }.merge(options)
- "#{options[:name]}-#{options[:version]}#{bottle_native_suffix(options)}"
+ suffix = ".#{options[:tag]}#{bottle_suffix(options[:revision])}"
+ "#{options[:name]}-#{options[:version]}#{suffix}"
end
def built_as_bottle? f
@@ -24,11 +25,6 @@ def bottle_file_outdated? f, file
bottle_ext && bottle_url_ext && bottle_ext != bottle_url_ext
end
-def bottle_native_suffix options={}
- options = { :tag => bottle_tag }.merge(options)
- ".#{options[:tag]}#{bottle_suffix(options[:revision])}"
-end
-
def bottle_suffix revision=nil
revision = revision.to_i > 0 ? ".#{revision}" : ""
".bottle#{revision}.tar.gz"