Store the object itself in the failed download set

Patches don't respond to "name".
This commit is contained in:
Jack Nagel 2014-09-10 22:08:34 -05:00
parent 9531ecc72a
commit c5885757e5

View File

@ -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