autoproj 1.6.2.rc2 → 1.6.2.rc3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/autoproj CHANGED
@@ -68,7 +68,7 @@ where
68
68
  'vcs_options' are optional values that can be given to the chosen VCS
69
69
  EOTEXT
70
70
  end
71
- raise
71
+ raise e
72
72
  end
73
73
 
74
74
  # Expand directories in the selected_packages set, before we chdir to the
@@ -581,9 +581,12 @@ fi
581
581
  if !installed.empty? && Autobuild.do_update
582
582
  # Look if we can update the package ...
583
583
  dep = Gem::Dependency.new(name, version_requirements)
584
- available = gem_fetcher.find_matching(dep)
584
+ available = gem_fetcher.find_matching(dep, false, true, OSDependencies.gem_with_prerelease)
585
585
  installed_version = installed.map(&:version).max
586
586
  available_version = available.map { |(name, v), source| v }.max
587
+ if !available_version
588
+ raise ConfigError, "cannot find any gem with the name '#{name}'"
589
+ end
587
590
  needs_update = (available_version > installed_version)
588
591
  !needs_update
589
592
  else
@@ -716,7 +719,6 @@ with the corresponding option (--all, --ruby, --os or --none).
716
719
  end
717
720
 
718
721
  def self.osdeps_mode
719
- puts caller.join("\n ")
720
722
  while true
721
723
  mode =
722
724
  if !Autoproj.has_config_key?('osdeps_mode') &&
@@ -1097,16 +1099,50 @@ end
1097
1099
 
1098
1100
  DEFS = <<EODEFS
1099
1101
  ---
1102
+ svn:
1103
+ arch: subversion
1104
+ gentoo: dev-util/subversion
1105
+ debian,ubuntu: subversion
1106
+ autobuild: gem
1107
+ zlib:
1108
+ debian,ubuntu: zlib1g-dev
1109
+ libxml2:
1110
+ arch: libxml2
1111
+ gentoo: dev-libs/libxml2
1112
+ debian,ubuntu: libxml2-dev
1100
1113
  none: ignore
1114
+ autotools:
1115
+ arch: automake autoconf
1116
+ gentoo:
1117
+ - sys-devel/automake:1.9
1118
+ - sys-devel/autoconf
1119
+ debian,ubuntu:
1120
+ - automake1.9
1121
+ - autoconf
1122
+ autoproj: gem
1123
+ archive:
1124
+ arch:
1125
+ - tar
1126
+ - unzip
1127
+ gentoo:
1128
+ - app-arch/tar
1129
+ - app-arch/unzip
1130
+ debian,ubuntu:
1131
+ - tar
1132
+ - unzip
1133
+ lsb_release:
1134
+ arch:
1135
+ gentoo: sys-apps/lsb-release
1136
+ debian,ubuntu: lsb-release
1101
1137
  ruby18:
1138
+ gentoo:
1139
+ - dev-lang/ruby:1.8
1102
1140
  debian,ubuntu:
1103
1141
  - ruby1.8-dev
1104
1142
  - ruby1.8
1105
1143
  - rubygems1.8
1106
1144
  - ri1.8
1107
1145
  - libopenssl-ruby1.8
1108
- gentoo:
1109
- - dev-lang/ruby:1.8
1110
1146
  ruby19:
1111
1147
  debian:
1112
1148
  squeeze,sid:
@@ -1117,67 +1153,33 @@ ruby19:
1117
1153
  - ruby1.9.1
1118
1154
  - ruby1.9.1-dev
1119
1155
  - rubygems1.9.1
1156
+ arch:
1157
+ - ruby
1158
+ gentoo:
1159
+ - dev-lang/ruby:1.9
1120
1160
  ubuntu:
1121
1161
  - ruby1.9.1
1122
1162
  - ruby1.9.1-dev
1123
1163
  - rubygems1.9.1
1124
1164
  - ri1.9.1
1125
1165
  - libopenssl-ruby1.9.1
1126
- gentoo:
1127
- - dev-lang/ruby:1.9
1128
- arch:
1129
- - ruby
1130
- rdoc: gem
1131
- build-essential:
1132
- debian,ubuntu: build-essential
1133
- gentoo:
1134
- arch:
1135
- libxml2:
1136
- debian,ubuntu: libxml2-dev
1137
- gentoo: dev-libs/libxml2
1138
- arch: libxml2
1139
- libxslt:
1140
- debian,ubuntu: libxslt1-dev
1141
- gentoo: dev-libs/libxslt
1142
- arch: libxslt
1143
- zlib:
1144
- debian,ubuntu: zlib1g-dev
1145
- autobuild: gem
1146
- autoproj: gem
1147
1166
  git:
1148
- debian,ubuntu: git-core
1149
- gentoo: dev-vcs/git
1150
1167
  arch: git
1151
- svn:
1152
- debian,ubuntu: subversion
1153
- gentoo: dev-util/subversion
1154
- arch: subversion
1168
+ gentoo: dev-vcs/git
1169
+ debian,ubuntu: git-core
1155
1170
  cmake:
1156
- debian,ubuntu: cmake
1157
- gentoo: dev-util/cmake
1158
1171
  arch: cmake
1159
- autotools:
1160
- debian,ubuntu:
1161
- - automake1.9
1162
- - autoconf
1163
- gentoo:
1164
- - sys-devel/automake:1.9
1165
- - sys-devel/autoconf
1166
- arch: automake autoconf
1167
- lsb_release:
1168
- debian,ubuntu: lsb-release
1169
- gentoo: sys-apps/lsb-release
1172
+ gentoo: dev-util/cmake
1173
+ debian,ubuntu: cmake
1174
+ build-essential:
1170
1175
  arch:
1171
- archive:
1172
- debian,ubuntu:
1173
- - tar
1174
- - unzip
1175
1176
  gentoo:
1176
- - app-arch/tar
1177
- - app-arch/unzip
1178
- arch:
1179
- - tar
1180
- - unzip
1177
+ debian,ubuntu: build-essential
1178
+ libxslt:
1179
+ arch: libxslt
1180
+ gentoo: dev-libs/libxslt
1181
+ debian,ubuntu: libxslt1-dev
1182
+ rdoc: gem
1181
1183
 
1182
1184
  EODEFS
1183
1185
 
@@ -97,15 +97,15 @@ module Autoproj
97
97
  Autoproj.osdeps = Autoproj::OSDependencies.load_default
98
98
  Autoproj.osdeps.silent = !osdeps?
99
99
  Autoproj.osdeps.filter_uptodate_packages = osdeps_filter_uptodate?
100
- if Autoproj::CmdLine.osdeps_forced_mode
101
- Autoproj.osdeps.osdeps_mode = Autoproj::CmdLine.osdeps_forced_mode
102
- end
103
- if @update_os_dependencies || Autoproj::CmdLine.osdeps?
104
- Autoproj.reset_option('operating_system')
100
+ if osdeps_forced_mode
101
+ Autoproj.osdeps.osdeps_mode = osdeps_forced_mode
105
102
  end
106
103
  # Do that AFTER we have properly setup Autoproj.osdeps as to avoid
107
104
  # unnecessarily redetecting the operating system
108
105
  Autoproj::OSDependencies.define_osdeps_mode_option
106
+ if update_os_dependencies? || osdeps?
107
+ Autoproj.reset_option('operating_system')
108
+ end
109
109
  Autoproj.osdeps.osdeps_mode
110
110
  end
111
111
 
@@ -15,11 +15,7 @@ ruby18:
15
15
 
16
16
  ruby19:
17
17
  debian:
18
- squeeze,sid:
19
- - ruby1.9.1
20
- - ruby1.9.1-dev
21
- - rubygems1.9.1
22
- stable:
18
+ stable,squeeze,sid:
23
19
  - ruby1.9.1
24
20
  - ruby1.9.1-dev
25
21
  - rubygems1.9.1
@@ -32,11 +32,13 @@ module Autoproj
32
32
  def doc
33
33
  doc = (options[:doc] || "#{name} (no documentation for this option)")
34
34
  if doc.respond_to?(:to_ary) # multi-line
35
- first_line = Autoproj.color(doc[0], :bold)
35
+ first_line = doc[0]
36
36
  remaining = doc[1..-1]
37
- if !remaining.empty?
37
+ if remaining.empty?
38
+ first_line
39
+ else
38
40
  remaining = remaining.join("\n").split("\n").join("\n ")
39
- first_line + "\n " + remaining
41
+ Autoproj.color(first_line, :bold) + "\n " + remaining
40
42
  end
41
43
  else
42
44
  doc
@@ -482,9 +482,12 @@ fi
482
482
  if !installed.empty? && Autobuild.do_update
483
483
  # Look if we can update the package ...
484
484
  dep = Gem::Dependency.new(name, version_requirements)
485
- available = gem_fetcher.find_matching(dep)
485
+ available = gem_fetcher.find_matching(dep, false, true, OSDependencies.gem_with_prerelease)
486
486
  installed_version = installed.map(&:version).max
487
487
  available_version = available.map { |(name, v), source| v }.max
488
+ if !available_version
489
+ raise ConfigError, "cannot find any gem with the name '#{name}'"
490
+ end
488
491
  needs_update = (available_version > installed_version)
489
492
  !needs_update
490
493
  else
@@ -617,7 +620,6 @@ with the corresponding option (--all, --ruby, --os or --none).
617
620
  end
618
621
 
619
622
  def self.osdeps_mode
620
- puts caller.join("\n ")
621
623
  while true
622
624
  mode =
623
625
  if !Autoproj.has_config_key?('osdeps_mode') &&
@@ -149,6 +149,8 @@ module Autoproj
149
149
  def self.load(source, *path)
150
150
  path = File.join(*path)
151
151
  Kernel.load path
152
+ rescue Interrupt
153
+ raise
152
154
  rescue Exception => e
153
155
  Autoproj.filter_load_exception(e, source, path)
154
156
  end
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.6.2.rc2"
2
+ VERSION = "1.6.2.rc3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 977940580
4
5
  prerelease: true
5
6
  segments:
6
7
  - 1
7
8
  - 6
8
9
  - 2
9
- - rc2
10
- version: 1.6.2.rc2
10
+ - rc3
11
+ version: 1.6.2.rc3
11
12
  platform: ruby
12
13
  authors:
13
14
  - Sylvain Joyeux
@@ -26,6 +27,7 @@ dependencies:
26
27
  requirements:
27
28
  - - ">="
28
29
  - !ruby/object:Gem::Version
30
+ hash: 17
29
31
  segments:
30
32
  - 1
31
33
  - 5
@@ -41,6 +43,7 @@ dependencies:
41
43
  requirements:
42
44
  - - ">="
43
45
  - !ruby/object:Gem::Version
46
+ hash: 23
44
47
  segments:
45
48
  - 1
46
49
  - 0
@@ -56,6 +59,7 @@ dependencies:
56
59
  requirements:
57
60
  - - ">="
58
61
  - !ruby/object:Gem::Version
62
+ hash: 29
59
63
  segments:
60
64
  - 1
61
65
  - 3
@@ -71,6 +75,7 @@ dependencies:
71
75
  requirements:
72
76
  - - ">="
73
77
  - !ruby/object:Gem::Version
78
+ hash: 29
74
79
  segments:
75
80
  - 1
76
81
  - 3
@@ -86,6 +91,7 @@ dependencies:
86
91
  requirements:
87
92
  - - ">="
88
93
  - !ruby/object:Gem::Version
94
+ hash: 3
89
95
  segments:
90
96
  - 1
91
97
  - 5
@@ -101,6 +107,7 @@ dependencies:
101
107
  requirements:
102
108
  - - ">="
103
109
  - !ruby/object:Gem::Version
110
+ hash: 7
104
111
  segments:
105
112
  - 2
106
113
  - 0
@@ -116,6 +123,7 @@ dependencies:
116
123
  requirements:
117
124
  - - ">="
118
125
  - !ruby/object:Gem::Version
126
+ hash: 25
119
127
  segments:
120
128
  - 0
121
129
  - 5
@@ -131,6 +139,7 @@ dependencies:
131
139
  requirements:
132
140
  - - ">="
133
141
  - !ruby/object:Gem::Version
142
+ hash: 31
134
143
  segments:
135
144
  - 2
136
145
  - 4
@@ -146,6 +155,7 @@ dependencies:
146
155
  requirements:
147
156
  - - ">="
148
157
  - !ruby/object:Gem::Version
158
+ hash: 19
149
159
  segments:
150
160
  - 2
151
161
  - 6
@@ -257,6 +267,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
257
267
  requirements:
258
268
  - - ">="
259
269
  - !ruby/object:Gem::Version
270
+ hash: 3
260
271
  segments:
261
272
  - 0
262
273
  version: "0"
@@ -265,6 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
276
  requirements:
266
277
  - - ">"
267
278
  - !ruby/object:Gem::Version
279
+ hash: 25
268
280
  segments:
269
281
  - 1
270
282
  - 3