Store the object itself in the failed download set
Patches don't respond to "name".
This commit is contained in:
		
							parent
							
								
									9531ecc72a
								
							
						
					
					
						commit
						c5885757e5
					
				@ -61,7 +61,7 @@ module Homebrew
 | 
			
		||||
 | 
			
		||||
  def retry_fetch? f
 | 
			
		||||
    @fetch_failed ||= Set.new
 | 
			
		||||
    if ARGV.include?("--retry") && @fetch_failed.add?(f.name)
 | 
			
		||||
    if ARGV.include?("--retry") && @fetch_failed.add?(f)
 | 
			
		||||
      ohai "Retrying download"
 | 
			
		||||
      f.clear_cache
 | 
			
		||||
      true
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user