autoproj 1.6.2.rc6 → 1.6.2.rc7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/autoproj CHANGED
@@ -188,26 +188,26 @@ EOTEXT
188
188
  elsif Autoproj::CmdLine.doc?
189
189
  Autoproj::CmdLine.build_packages(selected_packages, all_enabled_packages)
190
190
  elsif Autoproj::CmdLine.build?
191
- begin
192
- Autoproj::CmdLine.build_packages(selected_packages, all_enabled_packages)
191
+ Autoproj::CmdLine.build_packages(selected_packages, all_enabled_packages)
193
192
 
194
- # Now, do some sanity checks on the result
195
- prefixes = all_enabled_packages.inject(Set.new) do |set, pkg_name|
196
- set << Autobuild::Package[pkg_name].prefix
197
- end
193
+ # Now, do some sanity checks on the result
194
+ prefixes = all_enabled_packages.inject(Set.new) do |set, pkg_name|
195
+ set << Autobuild::Package[pkg_name].prefix
196
+ end
198
197
 
199
- Autoproj.progress
200
- Autoproj.progress "checking for undefined symbols in installed libraries", :bold
201
- prefixes.each do |prefix|
202
- libdir = File.join(prefix, "lib")
203
- if File.directory?(libdir)
204
- Autoproj.validate_solib_dependencies(libdir)
205
- end
198
+ Autoproj.progress
199
+ Autoproj.progress "checking for undefined symbols in installed libraries", :bold
200
+ prefixes.each do |prefix|
201
+ libdir = File.join(prefix, "lib")
202
+ if File.directory?(libdir)
203
+ Autoproj.validate_solib_dependencies(libdir)
206
204
  end
207
- ensure
208
- Autoproj.export_env_sh
209
- STDERR.puts color("autoproj: updated #{Autoproj.root_dir}/env.sh", :green)
210
205
  end
211
206
  end
207
+
208
+ if Autoproj::CmdLine.update_envsh?
209
+ Autoproj.export_env_sh
210
+ STDERR.puts color("autoproj: updated #{Autoproj.root_dir}/env.sh", :green)
211
+ end
212
212
  end
213
213
 
@@ -417,6 +417,23 @@ module Autoproj
417
417
  end
418
418
  end
419
419
 
420
+ begin
421
+ Autobuild.do_update = false
422
+ packages = Autobuild::Package.each.
423
+ find_all { |pkg_name, pkg| File.directory?(pkg.srcdir) }.
424
+ delete_if { |pkg_name, pkg| !all_enabled_packages.include?(pkg_name) || Autoproj.manifest.excluded?(pkg_name) || Autoproj.manifest.ignored?(pkg_name) }
425
+
426
+ packages.each do |_, pkg|
427
+ pkg.isolate_errors do
428
+ pkg.prepare
429
+ end
430
+ end
431
+
432
+ ensure
433
+ Autobuild.do_update = old_update_flag
434
+ end
435
+
436
+
420
437
  if Autoproj.verbose
421
438
  Autoproj.progress "autoproj: finished importing packages"
422
439
  end
@@ -498,6 +515,7 @@ module Autoproj
498
515
  def self.partial_build?; !!@partial_build end
499
516
  def self.mail_config; @mail_config || Hash.new end
500
517
  def self.update_packages?; @mode == "update" || @mode == "envsh" || build? end
518
+ def self.update_envsh?; @mode == "envsh" || build? end
501
519
  def self.build?; @mode =~ /build/ end
502
520
  def self.doc?; @mode == "doc" end
503
521
  def self.snapshot?; @mode == "snapshot" end
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.6.2.rc6"
2
+ VERSION = "1.6.2.rc7"
3
3
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 6
8
8
  - 2
9
- - rc6
10
- version: 1.6.2.rc6
9
+ - rc7
10
+ version: 1.6.2.rc7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sylvain Joyeux
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-26 00:00:00 +02:00
18
+ date: 2010-10-29 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency