fetch: fix --retry with resources.

This commit is contained in:
Mike McQuaid 2014-03-08 17:21:37 +00:00
parent 9c345bfc03
commit 9850e84f3b

View File

@ -28,7 +28,7 @@ module Homebrew extend self
puts "Resource: #{r.name}"
fetch_fetchable r
rescue ChecksumMismatchError => e
retry if retry_fetch? f
retry if retry_fetch? r
opoo "Resource #{r.name} reports different #{e.hash_type}: #{e.expected}"
end