mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
fix directory already exists error (#5600)
* fix directory already exists error * crew: rubyize /dev/urandom * lib.const.rb: bump crew version Co-authored-by: Ed Reel <edreel@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c92e268c2f
commit
ad96ddd09e
3
crew
3
crew
@@ -10,6 +10,7 @@ require 'uri'
|
||||
require 'digest/sha2'
|
||||
require 'json'
|
||||
require 'fileutils'
|
||||
require 'securerandom'
|
||||
require_relative 'lib/const'
|
||||
require_relative 'lib/util'
|
||||
|
||||
@@ -588,7 +589,7 @@ def download
|
||||
end
|
||||
|
||||
def unpack (meta)
|
||||
extract_dir = meta[:filename] + '.dir'
|
||||
extract_dir = meta[:filename] + '.' + SecureRandom.alphanumeric(8) + '.dir'
|
||||
target_dir = nil
|
||||
Dir.chdir CREW_BREW_DIR do
|
||||
FileUtils.mkdir_p extract_dir, verbose: @fileutils_verbose
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Defines common constants used in different parts of crew
|
||||
|
||||
CREW_VERSION = '1.8.2'
|
||||
CREW_VERSION = '1.8.3'
|
||||
|
||||
ARCH_ACTUAL = `uname -m`.strip
|
||||
# This helps with virtualized builds on aarch64 machines
|
||||
|
||||
Reference in New Issue
Block a user