autoproj 1.11.0.rc7 → 1.11.0.rc8
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.
- checksums.yaml +4 -4
- data/lib/autoproj/ops/configuration.rb +17 -3
- data/lib/autoproj/vcs_definition.rb +1 -1
- data/lib/autoproj/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a7e2b10a136698035f22e490b2291bedc4c67ad
|
|
4
|
+
data.tar.gz: e0ad7de5d45818872b30b065bd69fb9e2b83bd1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
-
|
|
206
|
-
|
|
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.
|
|
147
|
+
this_importer.source_id == other_importer.source_id
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
150
|
|
data/lib/autoproj/version.rb
CHANGED