autoproj 2.0.0.rc33 → 2.0.0.rc34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/autoproj_bootstrap +2 -3
- data/bin/autoproj_install +2 -3
- data/lib/autoproj/cli/osdeps.rb +1 -0
- data/lib/autoproj/ops/install.rb +2 -3
- data/lib/autoproj/os_package_installer.rb +3 -2
- data/lib/autoproj/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c2f6ef91c660d96b417ee9d3131407b4346e7ff
|
4
|
+
data.tar.gz: ad6a2ace669c9e736451c16c0be0b523ac24fd11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7f95bc00fbf33318348b7f95c6bf019f115c10366b6f2a6d537f8f04ec048c977b9d33898cd6abd4711303e2acf2150a70aba3067f63795acf1b94a62912118
|
7
|
+
data.tar.gz: 6229352a202ef5495e88c826e9d5548418a9f4035cc2134df2c5b6814a7cbaf606f94e958df118490e670b992229808b3622b60dfb00da796b9664a361b355b8
|
data/bin/autoproj_bootstrap
CHANGED
@@ -341,7 +341,6 @@ if defined?(Bundler)
|
|
341
341
|
end
|
342
342
|
end
|
343
343
|
|
344
|
-
ENV.delete('BUNDLE_GEMFILE')
|
345
344
|
ENV['GEM_HOME'] = '#{gems_gem_home}'
|
346
345
|
ENV.delete('GEM_PATH')
|
347
346
|
Gem.paths = Hash['GEM_HOME' => '#{gems_gem_home}', 'GEM_PATH' => '']
|
@@ -546,13 +545,13 @@ require 'bundler/setup'
|
|
546
545
|
require 'autobuild'
|
547
546
|
puts "saving env.sh and .autoproj/env.sh"
|
548
547
|
save_env_sh(*vars)
|
549
|
-
if !system(Gem.ruby, autoproj_path, 'envsh', *autoproj_options
|
548
|
+
if !system(Gem.ruby, autoproj_path, 'envsh', *autoproj_options)
|
550
549
|
STDERR.puts "failed to run autoproj envsh on the newly installed autoproj (#{autoproj_path})"
|
551
550
|
exit 1
|
552
551
|
end
|
553
552
|
# This is really needed on an existing install to install the
|
554
553
|
# gems that were present in the v1 layout
|
555
|
-
if !system(Gem.ruby, autoproj_path, 'osdeps'
|
554
|
+
if !system(Gem.ruby, autoproj_path, 'osdeps')
|
556
555
|
STDERR.puts "failed to run autoproj osdeps on the newly installed autoproj (#{autoproj_path})"
|
557
556
|
exit 1
|
558
557
|
end
|
data/bin/autoproj_install
CHANGED
@@ -341,7 +341,6 @@ if defined?(Bundler)
|
|
341
341
|
end
|
342
342
|
end
|
343
343
|
|
344
|
-
ENV.delete('BUNDLE_GEMFILE')
|
345
344
|
ENV['GEM_HOME'] = '#{gems_gem_home}'
|
346
345
|
ENV.delete('GEM_PATH')
|
347
346
|
Gem.paths = Hash['GEM_HOME' => '#{gems_gem_home}', 'GEM_PATH' => '']
|
@@ -546,13 +545,13 @@ require 'bundler/setup'
|
|
546
545
|
require 'autobuild'
|
547
546
|
puts "saving env.sh and .autoproj/env.sh"
|
548
547
|
save_env_sh(*vars)
|
549
|
-
if !system(Gem.ruby, autoproj_path, 'envsh', *autoproj_options
|
548
|
+
if !system(Gem.ruby, autoproj_path, 'envsh', *autoproj_options)
|
550
549
|
STDERR.puts "failed to run autoproj envsh on the newly installed autoproj (#{autoproj_path})"
|
551
550
|
exit 1
|
552
551
|
end
|
553
552
|
# This is really needed on an existing install to install the
|
554
553
|
# gems that were present in the v1 layout
|
555
|
-
if !system(Gem.ruby, autoproj_path, 'osdeps'
|
554
|
+
if !system(Gem.ruby, autoproj_path, 'osdeps')
|
556
555
|
STDERR.puts "failed to run autoproj osdeps on the newly installed autoproj (#{autoproj_path})"
|
557
556
|
exit 1
|
558
557
|
end
|
data/lib/autoproj/cli/osdeps.rb
CHANGED
@@ -14,6 +14,7 @@ def run(user_selection, options = Hash.new)
|
|
14
14
|
shell_helpers: ws.config.shell_helpers?
|
15
15
|
ws.install_os_packages(
|
16
16
|
osdep_packages,
|
17
|
+
run_package_managers_without_packages: true,
|
17
18
|
install_only: !options[:update])
|
18
19
|
ws.export_env_sh(shell_helpers: options[:shell_helpers])
|
19
20
|
end
|
data/lib/autoproj/ops/install.rb
CHANGED
@@ -331,7 +331,6 @@ def self.shim_bundler(ruby_executable, autoproj_gemfile_path, gems_gem_home)
|
|
331
331
|
end
|
332
332
|
end
|
333
333
|
|
334
|
-
ENV.delete('BUNDLE_GEMFILE')
|
335
334
|
ENV['GEM_HOME'] = '#{gems_gem_home}'
|
336
335
|
ENV.delete('GEM_PATH')
|
337
336
|
Gem.paths = Hash['GEM_HOME' => '#{gems_gem_home}', 'GEM_PATH' => '']
|
@@ -536,13 +535,13 @@ def stage2(*vars)
|
|
536
535
|
require 'autobuild'
|
537
536
|
puts "saving env.sh and .autoproj/env.sh"
|
538
537
|
save_env_sh(*vars)
|
539
|
-
if !system(Gem.ruby, autoproj_path, 'envsh', *autoproj_options
|
538
|
+
if !system(Gem.ruby, autoproj_path, 'envsh', *autoproj_options)
|
540
539
|
STDERR.puts "failed to run autoproj envsh on the newly installed autoproj (#{autoproj_path})"
|
541
540
|
exit 1
|
542
541
|
end
|
543
542
|
# This is really needed on an existing install to install the
|
544
543
|
# gems that were present in the v1 layout
|
545
|
-
if !system(Gem.ruby, autoproj_path, 'osdeps'
|
544
|
+
if !system(Gem.ruby, autoproj_path, 'osdeps')
|
546
545
|
STDERR.puts "failed to run autoproj osdeps on the newly installed autoproj (#{autoproj_path})"
|
547
546
|
exit 1
|
548
547
|
end
|
@@ -315,7 +315,7 @@ def pristine(packages, options = Hash.new)
|
|
315
315
|
end
|
316
316
|
|
317
317
|
# Requests the installation of the given set of packages
|
318
|
-
def install(osdep_packages, install_only: false, **options)
|
318
|
+
def install(osdep_packages, install_only: false, run_package_managers_without_packages: false, **options)
|
319
319
|
osdep_packages = osdep_packages.to_set - installed_packages
|
320
320
|
|
321
321
|
setup_package_managers(**options)
|
@@ -342,7 +342,8 @@ def install(osdep_packages, install_only: false, **options)
|
|
342
342
|
[os_packages, other_packages].each do |packages|
|
343
343
|
packages.each do |handler, list|
|
344
344
|
list = list.to_set - installed_resolved_packages[handler]
|
345
|
-
next if
|
345
|
+
next if !run_package_managers_without_packages ||
|
346
|
+
(list.empty? && !handler.call_while_empty?)
|
346
347
|
|
347
348
|
handler.install(
|
348
349
|
list.to_a,
|
data/lib/autoproj/version.rb
CHANGED