autoproj 1.7.12 → 1.7.13
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 +3 -0
- data/bin/autoproj_bootstrap +9 -1
- data/lib/autoproj/autobuild.rb +1 -1
- data/lib/autoproj/gitorious.rb +4 -3
- data/lib/autoproj/osdeps.rb +9 -1
- data/lib/autoproj/version.rb +1 -1
- metadata +4 -4
data/History.txt
CHANGED
data/bin/autoproj_bootstrap
CHANGED
@@ -255,7 +255,15 @@ module Autoproj
|
|
255
255
|
#
|
256
256
|
# Examples: ['debian', ['sid', 'unstable']] or ['ubuntu', ['lucid lynx', '10.04']]
|
257
257
|
def self.operating_system(options = Hash.new)
|
258
|
-
|
258
|
+
# Validate the options. We check on the availability of
|
259
|
+
# validate_options as to not break autoproj_bootstrap (in which
|
260
|
+
# validate_options is not available)
|
261
|
+
options =
|
262
|
+
if Kernel.respond_to?(:validate_options)
|
263
|
+
Kernel.validate_options options, :force => false
|
264
|
+
else
|
265
|
+
options.dup
|
266
|
+
end
|
259
267
|
|
260
268
|
if !options[:force]
|
261
269
|
if !@operating_system.nil?
|
data/lib/autoproj/autobuild.rb
CHANGED
@@ -300,7 +300,7 @@ module Autoproj
|
|
300
300
|
elsif File.file?(File.join(full_path, "CMakeLists.txt"))
|
301
301
|
"cmake_package"
|
302
302
|
elsif File.directory?(File.join(full_path, "lib")) &&
|
303
|
-
|
303
|
+
Find.enum_for(:find, File.join(full_path, "lib")).any? { |path| path =~ /\.rb$/ }
|
304
304
|
"ruby_package"
|
305
305
|
end
|
306
306
|
end
|
data/lib/autoproj/gitorious.rb
CHANGED
@@ -53,6 +53,7 @@ module Autoproj
|
|
53
53
|
if Autobuild::Importer.respond_to?(:fallback) && options[:fallback_to_http]
|
54
54
|
Autobuild::Importer.fallback do |package, importer|
|
55
55
|
root_rx = /^(?:http:\/\/git\.|git:\/\/|git@)#{Regexp.quote(base_url)}:?/
|
56
|
+
|
56
57
|
if importer.kind_of?(Autobuild::Git) && importer.repository =~ root_rx && importer.repository !~ /^http/
|
57
58
|
Autoproj.warn "import from #{importer.repository} failed, falling back to using http for all packages on #{base_url}"
|
58
59
|
|
@@ -87,9 +88,9 @@ module Autoproj
|
|
87
88
|
if url !~ /^\//
|
88
89
|
url = "/#{url}"
|
89
90
|
end
|
90
|
-
|
91
|
-
|
92
|
-
|
91
|
+
pull_base_url = Autoproj.user_config("#{name}_ROOT")
|
92
|
+
push_base_url = Autoproj.user_config("#{name}_PUSH_ROOT")
|
93
|
+
Hash[:type => 'git', :url => "#{pull_base_url}#{url}", :push_to => "#{push_base_url}#{url}"].merge(options)
|
93
94
|
end
|
94
95
|
end
|
95
96
|
end
|
data/lib/autoproj/osdeps.rb
CHANGED
@@ -156,7 +156,15 @@ module Autoproj
|
|
156
156
|
#
|
157
157
|
# Examples: ['debian', ['sid', 'unstable']] or ['ubuntu', ['lucid lynx', '10.04']]
|
158
158
|
def self.operating_system(options = Hash.new)
|
159
|
-
|
159
|
+
# Validate the options. We check on the availability of
|
160
|
+
# validate_options as to not break autoproj_bootstrap (in which
|
161
|
+
# validate_options is not available)
|
162
|
+
options =
|
163
|
+
if Kernel.respond_to?(:validate_options)
|
164
|
+
Kernel.validate_options options, :force => false
|
165
|
+
else
|
166
|
+
options.dup
|
167
|
+
end
|
160
168
|
|
161
169
|
if !options[:force]
|
162
170
|
if !@operating_system.nil?
|
data/lib/autoproj/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 1.7.
|
9
|
+
- 13
|
10
|
+
version: 1.7.13
|
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: 2011-08-
|
18
|
+
date: 2011-08-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: autobuild
|