mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
crew upload: mkdir before binary download. (#11824)
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7c55287366
commit
6940b3ffc7
1
bin/crew
1
bin/crew
@@ -1578,6 +1578,7 @@ def upload(pkg_name = nil, pkg_version = nil, gitlab_token = nil, gitlab_token_u
|
|||||||
next arch unless remote_binary
|
next arch unless remote_binary
|
||||||
# 3e. If a local binary doesn't exist, but a remote binary exists,
|
# 3e. If a local binary doesn't exist, but a remote binary exists,
|
||||||
# download it.
|
# download it.
|
||||||
|
FileUtils.mkdir_p release_dir
|
||||||
system "curl -Ls #{new_url} > #{local_tarfile}"
|
system "curl -Ls #{new_url} > #{local_tarfile}"
|
||||||
else
|
else
|
||||||
local_binary = true
|
local_binary = true
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
require 'etc'
|
require 'etc'
|
||||||
|
|
||||||
OLD_CREW_VERSION ||= defined?(CREW_VERSION) ? CREW_VERSION : '1.0'
|
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.
|
# Kernel architecture.
|
||||||
KERN_ARCH ||= Etc.uname[:machine]
|
KERN_ARCH ||= Etc.uname[:machine]
|
||||||
|
|||||||
Reference in New Issue
Block a user