test-bot: use bottle_resolve_formula_names
Closes Homebrew/homebrew#40134. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
		
							parent
							
								
									be18a816af
								
							
						
					
					
						commit
						517ced731c
					
				@ -779,12 +779,7 @@ module Homebrew
 | 
			
		||||
      formula_packaged = {}
 | 
			
		||||
 | 
			
		||||
      Dir.glob("*.bottle*.tar.gz") do |filename|
 | 
			
		||||
        formula_name = bottle_filename_formula_name filename
 | 
			
		||||
        canonical_formula_name = if tap
 | 
			
		||||
          "#{tap}/#{formula_name}"
 | 
			
		||||
        else
 | 
			
		||||
          formula_name
 | 
			
		||||
        end
 | 
			
		||||
        formula_name, canonical_formula_name = bottle_resolve_formula_names filename
 | 
			
		||||
        formula = Formulary.factory canonical_formula_name
 | 
			
		||||
        version = formula.pkg_version
 | 
			
		||||
        bintray_package = Bintray.package formula_name
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user