mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Fix method reporting in buildsystems, Fix Rust buildsystem, Rebuild uutils_coreutils. (#11930)
* Revamp rust buildsystem. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Rebuild uutils_coreutils correctly. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add better method printing to buildsystems. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Unify gem_name and gem_version variables. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * cleanup Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add variable for packages to skip during install testing portion of unit tests. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Avoid system override in python3 postinstall. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Remove old pip 23.2.1 workaround. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ac9a46e6ea
commit
8796d687f5
@@ -34,10 +34,10 @@ class Command
|
||||
|
||||
# Use gem to first try to remove gems...
|
||||
if pkg.name.start_with?('ruby_')
|
||||
@gem_name = pkg.name.sub('ruby_', '').sub('_', '-')
|
||||
if Kernel.system "gem list -i \"^#{@gem_name}\$\"", %i[out err] => File::NULL
|
||||
puts "Uninstalling #{@gem_name} before removing gem files. It's ok if this fails.".orange
|
||||
system "gem uninstall -aIx --abort-on-dependent #{@gem_name}", exception: false
|
||||
@ruby_gem_name = pkg.name.sub('ruby_', '').sub('_', '-')
|
||||
if Kernel.system "gem list -i \"^#{@ruby_gem_name}\$\"", %i[out err] => File::NULL
|
||||
puts "Uninstalling #{@ruby_gem_name} before removing gem files. It's ok if this fails.".orange
|
||||
system "gem uninstall -aIx --abort-on-dependent #{@ruby_gem_name}", exception: false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user