crew upload: mkdir before binary download. (#11824)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2025-04-26 09:54:06 -04:00
committed by GitHub
parent 7c55287366
commit 6940b3ffc7
2 changed files with 2 additions and 1 deletions

View File

@@ -1578,6 +1578,7 @@ def upload(pkg_name = nil, pkg_version = nil, gitlab_token = nil, gitlab_token_u
next arch unless remote_binary
# 3e. If a local binary doesn't exist, but a remote binary exists,
# download it.
FileUtils.mkdir_p release_dir
system "curl -Ls #{new_url} > #{local_tarfile}"
else
local_binary = true

View File

@@ -3,7 +3,7 @@
require 'etc'
OLD_CREW_VERSION ||= defined?(CREW_VERSION) ? CREW_VERSION : '1.0'
CREW_VERSION ||= '1.59.0' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
CREW_VERSION ||= '1.59.1' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
# Kernel architecture.
KERN_ARCH ||= Etc.uname[:machine]