From 9edc355052d52371331026178e44c8c5e06b56d3 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 25 Aug 2018 21:57:52 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20glob=20for=20`.incomplete`=20do?= =?UTF-8?q?wnloads.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Homebrew/download_strategy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 8ae34bec42..a566b2b57a 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -206,6 +206,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy url_sha256 = Digest::SHA256.hexdigest(url) downloads = Pathname.glob(HOMEBREW_CACHE/"downloads/#{url_sha256}--*") + .reject { |path| path.extname.end_with?(".incomplete") } @cached_location = if downloads.count == 1 downloads.first