Fix local bottle installation with hyphens.
This commit is contained in:
		
							parent
							
								
									6641fc4017
								
							
						
					
					
						commit
						7473d2b12f
					
				@ -357,7 +357,7 @@ class Formula
 | 
			
		||||
      install_type = :from_url
 | 
			
		||||
    elsif name.match bottle_regex
 | 
			
		||||
      bottle_filename = Pathname(name).realpath
 | 
			
		||||
      name = name.split('-').first
 | 
			
		||||
      name = bottle_filename.basename.to_s.rpartition('-').first
 | 
			
		||||
      path = Formula.path(name)
 | 
			
		||||
      install_type = :from_local_bottle
 | 
			
		||||
    else
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user