autoproj 1.11.0.rc1 → 1.11.0.rc2

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: 2355dd362e769ce1badfc7e1fee1fedfe9cdd0a8
4
- data.tar.gz: 4240e201c16d859dae7c5694546407c150c2bbdb
3
+ metadata.gz: 41de6372aa6ee2fca24f7c8f3b7c4ca3c1ca8d4d
4
+ data.tar.gz: 3235881ff0bf56f54243d6869c8b76d5aebc0a6b
5
5
  SHA512:
6
- metadata.gz: 5ea9258e525c023bedb01672cb6b23384a5d55d77d6939153435e976a8009597db453cacabda6f7170fa140bb788c9dac15ea10528d9e4e595a8f360748dfe6e
7
- data.tar.gz: 3cd7404f69a2d0d706ab170e8733123810867b58ef2256d1d351571b91df5671133e0f270169ec586a73b27117a100257cc7e99369219fbb2d9e6e8e9f94aa2b
6
+ metadata.gz: 63b62854e75a48479009286c796ac2a86566faa7cdc070019e860e7025d04c8b7500f4d288d39be3c412a9a2991bb3aebb98a71e253c531e693397c5b55e6d1d
7
+ data.tar.gz: b8b7bce7c13c6c68b4d18a0be3acd760aa49dff4aad0c5b974d6a82d273fa43518f32c4828b50e3836151a62a6e1330387f3381c79cd13e7651f6c13cd2473a0
@@ -173,8 +173,6 @@ module Autoproj
173
173
  if imported_from
174
174
  pkg_set.imported_from << imported_from
175
175
  imported_from.imports << pkg_set
176
- else
177
- pkg_set.explicit = true
178
176
  end
179
177
  pkg_set
180
178
  end
@@ -238,6 +236,7 @@ module Autoproj
238
236
  # Finally, queue the imports
239
237
  queue_auto_imports_if_needed(queue, pkg_set)
240
238
  end
239
+
241
240
  cleanup_remotes_dir(package_sets)
242
241
  cleanup_remotes_user_dir(package_sets)
243
242
  package_sets
@@ -266,9 +265,15 @@ module Autoproj
266
265
  end
267
266
  end
268
267
 
269
- def sort_package_sets_by_import_order(package_sets)
268
+ def sort_package_sets_by_import_order(package_sets, root_pkg_set)
269
+ # We do not consider the 'standalone' package sets while sorting.
270
+ # They are taken care of later, as we need to maintain the order the
271
+ # user defined in the package_sets section of the manifest
272
+ queue = package_sets.find_all do |pkg_set|
273
+ (!pkg_set.imports.empty? || !pkg_set.explicit?) && !(pkg_set == root_pkg_set)
274
+ end
275
+
270
276
  sorted = Array.new
271
- queue = package_sets.dup
272
277
  while !queue.empty?
273
278
  pkg_set = queue.shift
274
279
  if pkg_set.imports.any? { |imported_set| !sorted.include?(imported_set) }
@@ -277,6 +282,25 @@ module Autoproj
277
282
  sorted << pkg_set
278
283
  end
279
284
  end
285
+
286
+ # We now need to re-add the standalone package sets. Their order is
287
+ # determined by the order in the package_set section of the manifest
288
+ #
289
+ # Concretely, we add them in order, just after the entry above them
290
+ previous = nil
291
+ root_pkg_set.imports.each do |explicit_pkg_set|
292
+ if !sorted.include?(explicit_pkg_set)
293
+ if !previous
294
+ sorted.unshift explicit_pkg_set
295
+ else
296
+ i = sorted.index(previous)
297
+ sorted.insert(i + 1, explicit_pkg_set)
298
+ end
299
+ end
300
+ previous = pkg_set
301
+ end
302
+
303
+ sorted << root_pkg_set
280
304
  sorted
281
305
  end
282
306
 
@@ -294,7 +318,10 @@ module Autoproj
294
318
  root_pkg_set.load_description_file
295
319
  root_pkg_set.explicit = true
296
320
  package_sets = load_and_update_package_sets(root_pkg_set, only_local)
297
- package_sets = sort_package_sets_by_import_order(package_sets)
321
+ root_pkg_set.imports.each do |pkg_set|
322
+ pkg_set.explicit = true
323
+ end
324
+ package_sets = sort_package_sets_by_import_order(package_sets, root_pkg_set)
298
325
  package_sets.each do |pkg_set|
299
326
  manifest.register_package_set(pkg_set)
300
327
  end
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.11.0.rc1"
2
+ VERSION = "1.11.0.rc2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0.rc1
4
+ version: 1.11.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rock Core Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-06 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autobuild
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.12'
75
+ version: '3.13'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.12'
82
+ version: '3.13'
83
83
  description: autoproj is a manager for sets of software packages. It allows the user
84
84
  to import and build packages from source, still using the underlying distribution's
85
85
  native package manager for software that is available on it.