mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Install and build adjustments (#12057)
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
439ca73df7
commit
770a4b8067
@@ -65,7 +65,7 @@ def self.check_build_uploads(architectures_to_check = nil, name = nil)
|
||||
unless @remote_hash == binary_sha256_hash[arch.to_sym]
|
||||
puts "#{arch}/#{name}: Adjusting sha256sum in package file to the remote binary sha256sum".lightpurple
|
||||
puts "#{binary_sha256_hash[arch.to_sym]} =>\n#{@remote_hash}".blue
|
||||
system "sed -i 's,#{binary_sha256_hash[arch.to_sym]},#{@remote_hash},g' packages/#{name}.rb"
|
||||
system "sed 's,#{binary_sha256_hash[arch.to_sym]},#{@remote_hash},g;w packages/#{name}.rb' packages/#{name}.rb"
|
||||
# Do a force install to make sure the package hashes are ok.
|
||||
puts "Checking install of #{name} to confirm binary hashes are correct.".lightpurple
|
||||
system "yes | crew install -f #{name} ; crew remove #{name}", exception: false
|
||||
|
||||
Reference in New Issue
Block a user