mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add packages for default and bundled Ruby gems. (#10535)
* Update create_gem_packages. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add default gems package. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add default gems to core. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Handle gem names with underscores and dashes. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Try to make gem reinstalls faster. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update awscli. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust early gem install exit logic. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust default packages script. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Gem install refactoring... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Refactor gem compile. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix create_gem_packages description. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Work around matrix removal breaking crew. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8fc94ad1f1
commit
c78b28be9e
@@ -169,6 +169,7 @@ updated_packages.each do |pkg|
|
||||
boolean_property(boolean_properties.split)
|
||||
property(properties.split)
|
||||
|
||||
@binary_compression = 'gem' if gem_compile_needed?
|
||||
# Don't check if we need new binaries if the package doesn't already
|
||||
# have binaries for this architecture and no_compile_needed is set.
|
||||
if !system("grep -q binary_sha256 #{pkg}") && no_compile_needed?
|
||||
@@ -182,7 +183,7 @@ updated_packages.each do |pkg|
|
||||
check_builds.each do |arch|
|
||||
arch_specific_url = "#{CREW_GITLAB_PKG_REPO}/generic/#{name}/#{@version}_#{arch}/#{name}-#{@version}-chromeos-#{arch}.#{@binary_compression}"
|
||||
puts "Checking: curl -sI #{arch_specific_url}" if CREW_VERBOSE
|
||||
build.delete(arch) if `curl -sI #{arch_specific_url}`.lines.first.split[1] == '200'
|
||||
build.delete(arch) if `curl -sI #{arch_specific_url}`.lines.first.split[1] == '200' && system("grep -q binary_sha256 #{pkg}")
|
||||
end
|
||||
if build.empty?
|
||||
puts "No builds are needed for #{name} #{@version}.".lightgreen
|
||||
|
||||
Reference in New Issue
Block a user