autoproj 1.6.2.rc8 → 1.6.2.rc9

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@
10
10
  errors are properly presented at the end of the run.
11
11
  * when boostrapping, check that the current directory is empty and warn the
12
12
  user if it is not.
13
- * a few minor bugfixes
13
+ * a few more minor bugfixes
14
14
 
15
15
  = Version 1.6.1
16
16
  * fix a limitation of giving directories on the command line. Before, only
@@ -1246,7 +1246,7 @@ module Autoproj
1246
1246
 
1247
1247
  # First, remove packages that are directly referenced by name or by
1248
1248
  # package set names
1249
- selected_packages.delete_if do |sel|
1249
+ selected_packages.each do |sel|
1250
1250
  sel = Regexp.new(Regexp.quote(sel))
1251
1251
 
1252
1252
  packages = all_layout_packages.
@@ -1263,13 +1263,9 @@ module Autoproj
1263
1263
  !packages.empty? || !sources.empty?
1264
1264
  end
1265
1265
 
1266
- if selected_packages.empty?
1267
- return expanded_packages
1268
- end
1269
-
1270
1266
  # Now, search for layout names
1271
1267
  each_package_set(nil) do |layout_name, packages, _|
1272
- selected_packages.delete_if do |sel|
1268
+ selected_packages.each do |sel|
1273
1269
  if layout_name[0..-1] =~ Regexp.new("#{sel}\/?$")
1274
1270
  expanded_packages |= packages.to_set
1275
1271
  end
@@ -1278,7 +1274,7 @@ module Autoproj
1278
1274
 
1279
1275
  # Finally, check for package source directories
1280
1276
  all_packages = self.all_package_names
1281
- selected_packages.delete_if do |sel|
1277
+ selected_packages.each do |sel|
1282
1278
  match_dir = Regexp.new("^#{Regexp.quote(sel)}")
1283
1279
  match_pkg_name = Regexp.new(Regexp.quote(sel))
1284
1280
  all_packages.each do |pkg_name|
@@ -1286,7 +1282,8 @@ module Autoproj
1286
1282
  if pkg_name =~ match_pkg_name || pkg.srcdir =~ match_dir
1287
1283
  # Check-out packages that are not in the manifest only
1288
1284
  # if they are explicitely selected
1289
- if !File.directory?(pkg.srcdir) && !all_layout_packages.include?(pkg.name)
1285
+ puts "#{pkg_name} #{pkg.srcdir} #{sel} #{pkg_name != sel} #{pkg.srcdir != sel}"
1286
+ if pkg_name != sel && pkg.srcdir != sel && !all_layout_packages.include?(pkg.name)
1290
1287
  next
1291
1288
  end
1292
1289
 
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.6.2.rc8"
2
+ VERSION = "1.6.2.rc9"
3
3
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 6
8
8
  - 2
9
- - rc8
10
- version: 1.6.2.rc8
9
+ - rc9
10
+ version: 1.6.2.rc9
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-11-01 00:00:00 +01:00
18
+ date: 2010-11-02 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency