retryable_download: ensure HOMEBREW_CELLAR exists.

This commit is contained in:
Mike McQuaid 2025-07-23 17:00:52 +01:00
parent 9255a1fd84
commit d3a9525fd7
No known key found for this signature in database

View File

@ -73,6 +73,7 @@ module Homebrew
downloadable.verify_download_integrity(download) if verify_download_integrity && !json_download downloadable.verify_download_integrity(download) if verify_download_integrity && !json_download
if pour && downloadable.is_a?(Bottle) if pour && downloadable.is_a?(Bottle)
HOMEBREW_CELLAR.mkpath
UnpackStrategy.detect(download, prioritize_extension: true) UnpackStrategy.detect(download, prioritize_extension: true)
.extract_nestedly(to: HOMEBREW_CELLAR) .extract_nestedly(to: HOMEBREW_CELLAR)
elsif json_download elsif json_download