Skip to content

Commit e9442f5

Browse files
authored
Merge pull request #20341 from Homebrew/api-source-fix
api: fix handling of source downloads
2 parents 4d0c3fa + c1c5874 commit e9442f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Library/Homebrew/api/cask.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def self.source_download(cask, download_queue: nil)
4747

4848
if download_queue
4949
download_queue.enqueue(download)
50-
elsif !download.cache.exist?
50+
elsif !download.symlink_location.exist?
5151
download.fetch
5252
end
5353

Library/Homebrew/api/formula.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def self.source_download(formula, download_queue: nil)
4242

4343
if download_queue
4444
download_queue.enqueue(download)
45-
elsif !download.cache.exist?
45+
elsif !download.symlink_location.exist?
4646
download.fetch
4747
end
4848

0 commit comments

Comments
 (0)