Merge pull request #20341 from Homebrew/api-source-fix
api: fix handling of source downloads
This commit is contained in:
commit
e9442f5417
@ -47,7 +47,7 @@ module Homebrew
|
|||||||
|
|
||||||
if download_queue
|
if download_queue
|
||||||
download_queue.enqueue(download)
|
download_queue.enqueue(download)
|
||||||
elsif !download.cache.exist?
|
elsif !download.symlink_location.exist?
|
||||||
download.fetch
|
download.fetch
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ module Homebrew
|
|||||||
|
|
||||||
if download_queue
|
if download_queue
|
||||||
download_queue.enqueue(download)
|
download_queue.enqueue(download)
|
||||||
elsif !download.cache.exist?
|
elsif !download.symlink_location.exist?
|
||||||
download.fetch
|
download.fetch
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user