Inline method so we don't merge and unpack options twice
This commit is contained in:
		
							parent
							
								
									0323226256
								
							
						
					
					
						commit
						644904736e
					
				@ -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"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user