Skip to content

Commit

Permalink
cmd/fetch: support retrying manifest downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Oct 13, 2023
1 parent b085889 commit 337a8fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Library/Homebrew/cmd/fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ def self.fetch
next
end

formula.fetch_bottle_tab
begin
bottle.fetch_tab

Check warning on line 133 in Library/Homebrew/cmd/fetch.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cmd/fetch.rb#L133

Added line #L133 was not covered by tests
rescue DownloadError
retry if retry_fetch?(bottle, args: args)
raise

Check warning on line 136 in Library/Homebrew/cmd/fetch.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cmd/fetch.rb#L136

Added line #L136 was not covered by tests
end
fetch_formula(bottle, args: args)
rescue Interrupt
raise
Expand Down

0 comments on commit 337a8fc

Please sign in to comment.