autoproj 2.0.1 → 2.0.2

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: 25acae3976b79a7315a31833d05307dcb4895f54
4
- data.tar.gz: d9d1ab21a7aabc251e31f315f5c07d07fb068950
3
+ metadata.gz: 1cf7f7d0c8d98b09aff6103fed65c4c4c5b9f20b
4
+ data.tar.gz: 5175feae1b29209f1cd5d3706737e2561d3f982c
5
5
  SHA512:
6
- metadata.gz: 42e0965907323cdeff72cc1b5754b4b5f35202ac295d603348d669d868d31df9170a242cdf901ac6ecba0c43d3e0bede54c9b2f368e0d0f0e79c23f4e39ada70
7
- data.tar.gz: 2903a67c90039c2fa5f0d4101477815559b77586edc3fbe11fb6722515b499a0fac346c6b009a1924af85a98daa20be837181fe02a93bdcc965b08dd01d3a146
6
+ metadata.gz: cab8e9584a00aebb183cacdafc88487830a73d94ea3228d62cb8f3e8524b10a5980526d62f2bf52f696c60dd8a0615d765736c178db9f1ec085da7d56b97e829
7
+ data.tar.gz: da39b66b640c0e62143e520d9e6adebc16a02c2b333728133f685ae263f4057893d1e1c8f9086cc8033bf8a788b89d8fc753d1294372a38e1b5cdb5b43b5e69a
@@ -21,7 +21,7 @@ def run(selected_packages, options)
21
21
  rebuild: false,
22
22
  parallel: nil
23
23
 
24
- command_line_selection, source_packages, osdep_packages =
24
+ command_line_selection, source_packages, _osdep_packages =
25
25
  super(selected_packages, options.merge(checkout_only: true))
26
26
 
27
27
  parallel = build_options[:parallel] || ws.config.parallel_build_level
@@ -9,7 +9,7 @@ def validate_options(selection, options)
9
9
  selection, options = super
10
10
 
11
11
  if from = options[:from]
12
- options[:from] = Autoproj::InstallationManifest.from_workspace_root(options[:from])
12
+ options[:from] = Autoproj::InstallationManifest.from_workspace_root(from)
13
13
  end
14
14
 
15
15
  if options[:aup] && !options[:all] && selection.empty?
@@ -310,7 +310,7 @@ def clear_ignored
310
310
  def excluded?(package_name)
311
311
  package_name = validate_package_name_argument(package_name)
312
312
 
313
- if excluded_in_manifest?(package_name)
313
+ if !explicitely_selected_in_layout?(package_name) && excluded_in_manifest?(package_name)
314
314
  true
315
315
  elsif automatic_exclusions.any? { |pkg_name, | pkg_name == package_name }
316
316
  true
@@ -380,14 +380,20 @@ def excluded_in_manifest?(package_name)
380
380
  # disabled on this particular operating system.
381
381
  def exclusion_reason(package_name)
382
382
  package_name = validate_package_name_argument(package_name)
383
- manifest_exclusions.any? do |matcher|
384
- if (pkg_set = metapackages[matcher]) && pkg_set.include?(package_name)
385
- return "#{pkg_set.name} is a metapackage listed in the exclude_packages section of the manifest, and it includes #{package_name}"
386
- elsif Regexp.new(matcher) === package_name
387
- return "#{package_name} is listed in the exclude_packages section of the manifest"
383
+ if message = automatic_exclusions[package_name]
384
+ return message
385
+ end
386
+
387
+ if !explicitely_selected_in_layout?(package_name)
388
+ manifest_exclusions.each do |matcher|
389
+ if (pkg_set = metapackages[matcher]) && pkg_set.include?(package_name)
390
+ return "#{pkg_set.name} is a metapackage listed in the exclude_packages section of the manifest, and it includes #{package_name}"
391
+ elsif Regexp.new(matcher) === package_name
392
+ return "#{package_name} is listed in the exclude_packages section of the manifest"
393
+ end
388
394
  end
389
395
  end
390
- automatic_exclusions[package_name]
396
+ nil
391
397
  end
392
398
 
393
399
  # Returns true if the given package name has been explicitely added to
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
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: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
@@ -337,3 +337,4 @@ signing_key:
337
337
  specification_version: 4
338
338
  summary: Easy installation and management of sets of software packages
339
339
  test_files: []
340
+ has_rdoc: