autobuild 1.5.37 → 1.5.38

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.
@@ -1,3 +1,7 @@
1
+ == Version 1.5.38
2
+ * add the 'revision' option for the SVN importer. It allows to pick a particular
3
+ revision number, as usually specified by the -r option to svn co and svn up
4
+
1
5
  == Version 1.5.37
2
6
  Quickfix release
3
7
  * broke Autobuild::Orogen.always_regenerate by converting attr_accessor to
@@ -12,10 +12,17 @@ module Autobuild
12
12
  # to 'svn' and can be configured by doing
13
13
  # Autobuild.programs['svn'] = 'my_svn_tool'
14
14
  def initialize(source, options = {})
15
+ options = Kernel.validate_options options,
16
+ :svnup => [], :svnco => [], :revision => nil
17
+
15
18
  @source = [*source].join("/")
16
19
  @program = Autobuild.tool('svn')
17
20
  @options_up = [*options[:svnup]]
18
21
  @options_co = [*options[:svnco]]
22
+ if rev = options[:revision]
23
+ @options_up << "--revision" << rev
24
+ @options_co << "--revision" << rev
25
+ end
19
26
  super(options)
20
27
  end
21
28
 
@@ -126,7 +126,9 @@ class Importer
126
126
  Importer.fallback_handlers.each do |handler|
127
127
  fallback_importer = handler.call(package, self)
128
128
  if fallback_importer.kind_of?(Importer)
129
- begin fallback_importer.send(*args, &block)
129
+ begin
130
+ fallback_importer.send(*args, &block)
131
+ return
130
132
  rescue Exception
131
133
  raise error
132
134
  end
@@ -499,6 +499,12 @@ module Autobuild
499
499
  @@packages[name.to_s] || @@provides[name.to_s]
500
500
  end
501
501
 
502
+ # Removes all package definitions
503
+ def self.clear
504
+ @@packages.clear
505
+ @@provides.clear
506
+ end
507
+
502
508
  # Sets the level of parallelism authorized while building this package
503
509
  #
504
510
  # See #parallel_build_level and Autobuild.parallel_build_level for more
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.5.37" unless defined? Autobuild::VERSION
2
+ VERSION = "1.5.38" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- hash: 73
4
+ hash: 79
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 37
10
- version: 1.5.37
9
+ - 38
10
+ version: 1.5.38
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sylvain Joyeux
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-02 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-05-13 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rake
@@ -165,7 +164,6 @@ files:
165
164
  - test/test_import_tar.rb
166
165
  - test/test_subcommand.rb
167
166
  - test/tools.rb
168
- has_rdoc: true
169
167
  homepage:
170
168
  licenses: []
171
169
 
@@ -196,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
194
  requirements: []
197
195
 
198
196
  rubyforge_project: autobuild
199
- rubygems_version: 1.6.2
197
+ rubygems_version: 1.7.2
200
198
  signing_key:
201
199
  specification_version: 3
202
200
  summary: Rake-based utility to build and install multiple packages with dependencies