Skip concurrent fetch with fewer than 2 downloads

This commit is contained in:
Rylan Polster 2025-07-20 17:12:43 -04:00
parent d0959bbd02
commit df3b3ce19c
No known key found for this signature in database

View File

@ -36,7 +36,9 @@ module Homebrew
sig { void }
def fetch
if concurrency == 1
return if downloads.empty?
if concurrency == 1 || downloads.one?
downloads.each do |downloadable, promise|
promise.wait!
rescue ChecksumMismatchError => e