bump-formula-pr: detect download strategy from url.
Previously, CurlDownloadStrategy was hard coded.
This commit is contained in:
		
							parent
							
								
									6460a34e65
								
							
						
					
					
						commit
						edd1c76d40
					
				@ -198,7 +198,7 @@ module Homebrew
 | 
			
		||||
        new_url.sub "mirrors.ocf.berkeley.edu/debian", "mirrorservice.org/sites/ftp.debian.org/debian"
 | 
			
		||||
      end
 | 
			
		||||
      resource = Resource.new { @url = new_url }
 | 
			
		||||
      resource.download_strategy = CurlDownloadStrategy
 | 
			
		||||
      resource.download_strategy = DownloadStrategyDetector.detect_from_url(new_url)
 | 
			
		||||
      resource.owner = Resource.new(formula.name)
 | 
			
		||||
      resource.version = forced_version if forced_version
 | 
			
		||||
      odie "No --version= argument specified!" unless resource.version
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user