autoproj 1.6.0.rc1 → 1.6.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/guide/src/autoproj_bootstrap +5 -4
- data/lib/autoproj/cmdline.rb +3 -2
- data/lib/autoproj/osdeps.rb +3 -2
- data/lib/autoproj/system.rb +1 -1
- data/lib/autoproj/version.rb +1 -1
- metadata +2 -2
@@ -5,7 +5,7 @@ if RUBY_VERSION < "1.8.7"
|
|
5
5
|
exit 1
|
6
6
|
end
|
7
7
|
|
8
|
-
needed_gem_home = "#{Dir.pwd}/.gems"
|
8
|
+
needed_gem_home = ENV['AUTOPROJ_GEM_HOME'] || "#{Dir.pwd}/.gems"
|
9
9
|
if $LOADED_FEATURES.find { |str| str =~ /bygems/ }
|
10
10
|
if ENV['GEM_HOME'] != needed_gem_home
|
11
11
|
require 'rbconfig'
|
@@ -565,8 +565,9 @@ module Autoproj
|
|
565
565
|
puts
|
566
566
|
end
|
567
567
|
|
568
|
-
if automatic_osdeps_mode == ASK
|
569
|
-
|
568
|
+
if automatic_osdeps_mode == ASK && (os_def || !gems.empty?)
|
569
|
+
if !os_def
|
570
|
+
print "Should I install these packages ? [yes] "
|
570
571
|
STDOUT.flush
|
571
572
|
do_osdeps = nil
|
572
573
|
while do_osdeps.nil?
|
@@ -848,7 +849,7 @@ end
|
|
848
849
|
File.open('env.sh', 'w') do |io|
|
849
850
|
io.write <<-EOSHELL
|
850
851
|
export RUBYOPT=-rubygems
|
851
|
-
export GEM_HOME=#{
|
852
|
+
export GEM_HOME=#{needed_gem_home}
|
852
853
|
export PATH=$GEM_HOME/bin:$PATH
|
853
854
|
EOSHELL
|
854
855
|
end
|
data/lib/autoproj/cmdline.rb
CHANGED
@@ -934,7 +934,8 @@ manifest_source:
|
|
934
934
|
# Check if we are being called from another GEM_HOME. If it is the case,
|
935
935
|
# assume that we are bootstrapping from another installation directory and
|
936
936
|
# start by copying the .gems directory
|
937
|
-
|
937
|
+
needed_gem_home = Autoproj.gem_home
|
938
|
+
if ENV['GEM_HOME'] && ENV['GEM_HOME'] =~ /\.gems\/?$/ && ENV['GEM_HOME'] != needed_gem_home
|
938
939
|
Autoproj.progress "autoproj: reusing bootstrap from #{File.dirname(ENV['GEM_HOME'])}"
|
939
940
|
FileUtils.cp_r ENV['GEM_HOME'], ".gems"
|
940
941
|
ENV['GEM_HOME'] = File.join(Dir.pwd, ".gems")
|
@@ -974,7 +975,7 @@ manifest_source:
|
|
974
975
|
File.open('env.sh', 'w') do |io|
|
975
976
|
io.write <<-EOSHELL
|
976
977
|
export RUBYOPT=-rubygems
|
977
|
-
export GEM_HOME=#{
|
978
|
+
export GEM_HOME=#{Autoproj.gem_home}
|
978
979
|
export PATH=$GEM_HOME/bin:$PATH
|
979
980
|
EOSHELL
|
980
981
|
end
|
data/lib/autoproj/osdeps.rb
CHANGED
@@ -479,8 +479,9 @@ module Autoproj
|
|
479
479
|
puts
|
480
480
|
end
|
481
481
|
|
482
|
-
if automatic_osdeps_mode == ASK
|
483
|
-
|
482
|
+
if automatic_osdeps_mode == ASK && (os_def || !gems.empty?)
|
483
|
+
if !os_def
|
484
|
+
print "Should I install these packages ? [yes] "
|
484
485
|
STDOUT.flush
|
485
486
|
do_osdeps = nil
|
486
487
|
while do_osdeps.nil?
|
data/lib/autoproj/system.rb
CHANGED
@@ -79,7 +79,7 @@ module Autoproj
|
|
79
79
|
|
80
80
|
# Return the directory in which RubyGems package should be installed
|
81
81
|
def self.gem_home
|
82
|
-
File.join(root_dir, ".gems")
|
82
|
+
ENV['AUTOPROJ_GEM_HOME'] || File.join(root_dir, ".gems")
|
83
83
|
end
|
84
84
|
|
85
85
|
# Find the given program in PATH. It raises ArgumentError if the program
|
data/lib/autoproj/version.rb
CHANGED