autoproj 1.11.0.rc7 → 1.11.0.rc8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14b89ab39afd8458a961c2a6377fb0a9612ed54c
4
- data.tar.gz: e0e0b962d21398865dbe0b8c286287b0ee7b0cd8
3
+ metadata.gz: 4a7e2b10a136698035f22e490b2291bedc4c67ad
4
+ data.tar.gz: e0ad7de5d45818872b30b065bd69fb9e2b83bd1f
5
5
  SHA512:
6
- metadata.gz: fb711e7b42acf4104ab041753e53318faf1e9cac5b6b7bf5b12431028e4bd959970cb0d6fadba05961ac16c8014c4d5c5a252885deeac4e5582bf73568b810c5
7
- data.tar.gz: a0f4c93397ce1bbe70c11ccf8a45339f91fcaa5e1e991f19d13470742324e525763c02fa3cb18a58b63839cebd74408ad0adc73ec05af2a2f53f477a388ace27
6
+ metadata.gz: f40ab8796d0b7d6b23864e1a201e0424e25e2b5f623b2f55f17e4b4a5129fb5043ca50cca4b81bb455c97a55898b4891e490f0ed8914a5ea54d96cc756c9ecdc
7
+ data.tar.gz: 752bfe739419d06f3f913ccc5fa68622a57d16d12ab09dd5389859d2ac19bc889885c57502b7547743dc3d48a2b4ff032321e757161c2209a5bc91b009908a62
@@ -186,6 +186,13 @@ module Autoproj
186
186
  queue
187
187
  end
188
188
 
189
+ def repository_id_of(vcs)
190
+ name = PackageSet.name_of(manifest, vcs)
191
+ raw_local_dir = PackageSet.raw_local_dir_of(vcs)
192
+ fake_package = Tools.create_autobuild_package(vcs, name, raw_local_dir)
193
+ fake_package.importer.repository_id
194
+ end
195
+
189
196
  # Load the package set information
190
197
  #
191
198
  # It loads the package set information as required by {manifest} and
@@ -196,14 +203,21 @@ module Autoproj
196
203
  # package sets
197
204
  def load_and_update_package_sets(root_pkg_set, only_local = false)
198
205
  package_sets = [root_pkg_set]
199
- seen_already = Set.new
206
+ by_repository_id = Hash.new
200
207
  by_name = Hash.new
201
208
 
202
209
  queue = queue_auto_imports_if_needed(Array.new, root_pkg_set)
203
210
  while !queue.empty?
204
211
  vcs, options, imported_from = queue.shift
205
- next if seen_already.include?(vcs)
206
- seen_already << vcs
212
+ repository_id = repository_id_of(vcs)
213
+ if already_processed = by_repository_id[repository_id]
214
+ already_processed_vcs, already_processed_from = *already_processed
215
+ if already_processed_from && (already_processed_vcs != vcs)
216
+ Autoproj.warn "already loaded the package set from #{already_processed_vcs} from #{already_processed_from.name}, this overrides different settings (#{vcs}) found in #{imported_from.name}"
217
+ end
218
+ next
219
+ end
220
+ by_repository_id[repository_id] = vcs
207
221
 
208
222
  if !vcs.local?
209
223
  update_remote_package_set(vcs, only_local)
@@ -144,7 +144,7 @@ module Autoproj
144
144
  elsif !other_vcs.local?
145
145
  this_importer = create_autobuild_importer
146
146
  other_importer = other_vcs.create_autobuild_importer
147
- this_importer.repository_id == other_importer.repository_id
147
+ this_importer.source_id == other_importer.source_id
148
148
  end
149
149
  end
150
150
 
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.11.0.rc7"
2
+ VERSION = "1.11.0.rc8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0.rc7
4
+ version: 1.11.0.rc8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rock Core Developers