autoproj 1.1.2 → 1.1.3

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.
data/History.txt CHANGED
@@ -1,7 +1,14 @@
1
+ = Version 1.1.3
2
+ * fix --reconfigure on installations where the main configuration is managed by
3
+ a VCS
4
+ * fix: env.sh where updated on "status" or "doc", which made them invalid
5
+ * shut up the "lsb_release: command not found" message during bootstrapping
6
+ * fix restartig the autoproj_bootstrap script after a failed attempt
7
+
1
8
  = Version 1.1.2
2
9
  * fix version detection on Debian, lsb-release cannot be trusted there.
3
10
  * update already installed Gem
4
- * update autobuild and autoproj themselves if needed
11
+ * make autoproj update himself, as well as autobuild
5
12
 
6
13
  = Version 1.1.1
7
14
  * better general error reporting
data/bin/autoproj CHANGED
@@ -182,6 +182,7 @@ def do_bootstrap(*args)
182
182
  if File.exists?(File.join("autoproj", "manifest"))
183
183
  raise ConfigError, "this installation is already bootstrapped. Remove the autoproj directory if it is not the case"
184
184
  end
185
+ Autobuild.logdir = File.join('build', 'log')
185
186
 
186
187
  if args.empty? # no argument, simply add a manifest template
187
188
  sample_dir = File.expand_path(File.join("..", "samples"), File.dirname(__FILE__))
@@ -558,11 +559,13 @@ begin
558
559
  Autobuild.do_update = old_update_flag
559
560
  end
560
561
 
561
- all_env_sh << name
562
- Autoproj.export_env_sh(name)
562
+ if mode == "build"
563
+ all_env_sh << name
564
+ Autoproj.export_env_sh(name)
565
+ end
563
566
  end
564
567
 
565
- if mode == "build"
568
+ if !all_env_sh.empty?
566
569
  STDERR.puts <<-EOTEXT
567
570
 
568
571
 
@@ -21,6 +21,12 @@ module Autoproj
21
21
  end
22
22
 
23
23
  module Autobuild
24
+ def self.do_update
25
+ true
26
+ end
27
+ def self.progress(str)
28
+ STDERR.puts " #{str}"
29
+ end
24
30
  module Subprocess
25
31
  def self.run(name, phase, *cmd)
26
32
  `#{cmd.join(" ")}`
@@ -88,8 +94,10 @@ module Autoproj
88
94
  end
89
95
 
90
96
  def os_from_lsb
91
- distributor = `lsb_release -i -s`
97
+ has_lsb_release = `which lsb_release`
92
98
  return unless $?.success?
99
+
100
+ distributor = `lsb_release -i -s`
93
101
  distributor = distributor.chomp.downcase
94
102
  codename = `lsb_release -c -s`.chomp.downcase
95
103
  version = `lsb_release -r -s`.chomp.downcase
@@ -78,11 +78,13 @@ module Autoproj
78
78
 
79
79
  def self.user_config(key)
80
80
  value, seen = @user_config[key]
81
+ # All non-user options are always considered as "seen"
82
+ seen ||= !@declared_options.has_key?(key)
81
83
 
82
84
  if value.nil? || (!seen && Autoproj.reconfigure?)
83
85
  value = configure(key)
84
86
  else
85
- if !seen && @declared_options[key]
87
+ if !seen
86
88
  STDERR.puts " #{@declared_options[key].doc}: #{value}"
87
89
  @user_config[key] = [value, true]
88
90
  end
@@ -54,8 +54,10 @@ module Autoproj
54
54
  end
55
55
 
56
56
  def os_from_lsb
57
- distributor = `lsb_release -i -s`
57
+ has_lsb_release = `which lsb_release`
58
58
  return unless $?.success?
59
+
60
+ distributor = `lsb_release -i -s`
59
61
  distributor = distributor.chomp.downcase
60
62
  codename = `lsb_release -c -s`.chomp.downcase
61
63
  version = `lsb_release -r -s`.chomp.downcase
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux