test-bot: override existing Bintray bottles.
This commit is contained in:
		
							parent
							
								
									6de372d7fe
								
							
						
					
					
						commit
						cfc8ac0190
					
				@ -786,8 +786,10 @@ module Homebrew
 | 
			
		||||
          formula_packaged[formula_name] = true
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        content_url = "https://api.bintray.com/content/homebrew/#{bintray_repo}/#{bintray_package}/#{version}/#{filename}"
 | 
			
		||||
        content_url += "?publish=1&override=1" if existing_bottle
 | 
			
		||||
        content_url = "https://api.bintray.com/content/homebrew"
 | 
			
		||||
        content_url += "/#{bintray_repo}/#{bintray_package}/#{version}/#{filename}"
 | 
			
		||||
        content_url += "?override=1"
 | 
			
		||||
        content_url += "&publish=1" if existing_bottle
 | 
			
		||||
        curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}",
 | 
			
		||||
             "-T", filename, content_url
 | 
			
		||||
        puts
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user