autoproj 1.13.6 → 1.13.7

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: 91f2f8f2ee8e760db9598f7b8d12c6d47c5efebb
4
- data.tar.gz: c3f5a5a811b784361f2b01e856162b777d821b3c
3
+ metadata.gz: 5d9ce5749393ef4ef70b623d58c40081a5627c45
4
+ data.tar.gz: 531e965538bdfd19e8ae40290d2e53bcfd5031a6
5
5
  SHA512:
6
- metadata.gz: 553c69b190843df01046b667ccbeff230492cbfe879442042400a226d84c92768ddc0333a14edf06168f347fc4d25593157c8a22c1895d6a1619cfaa3150db65
7
- data.tar.gz: b88ca4d0120dee5659b54b4c8ae259b3a063c1570bc66f5265669de0f593d5b68fa35a77cff67cf89914842bb705604d7aab3ed71e6c6b86b3e3448d3c0b817e
6
+ metadata.gz: 0a834c5d645039281a09328febb4cf736d4b5a5151813752467195b36c6a15ba383352693a0df4a1443296d7e67574e2c396ceeee2f4a8697bdce8a037143d8b
7
+ data.tar.gz: 7f0359dbee5d7c6674e36af22d1096592aaec38640eeecc8ec6f075db14eee8482037bd5437b6370f920e30db4e5247d7a1b9831cccdaf4c0b7e1561b9edeed3
@@ -565,6 +565,10 @@ module Autoproj
565
565
  @silent = true
566
566
  end
567
567
 
568
+ def parse_package_entry(entry)
569
+ entry
570
+ end
571
+
568
572
  # The primary name for this package manager
569
573
  def name
570
574
  names.first
@@ -1974,11 +1978,15 @@ fi
1974
1978
  end
1975
1979
 
1976
1980
  result.map do |handler, status, entries|
1977
- if handler.respond_to?(:parse_package_entry)
1978
- [handler, status, entries.map { |s| handler.parse_package_entry(s) }]
1979
- else
1980
- [handler, status, entries]
1981
+ entries = entries.map do |e|
1982
+ if e.respond_to?(:to_str)
1983
+ handler.parse_package_entry(e)
1984
+ else
1985
+ e
1986
+ end
1981
1987
  end
1988
+
1989
+ [handler, status, entries]
1982
1990
  end
1983
1991
  end
1984
1992
 
@@ -2542,17 +2550,19 @@ module Autobuild
2542
2550
  programs[name.to_sym] || programs[name.to_s] || name.to_s
2543
2551
  end
2544
2552
 
2545
- # Find a file in a given path-like variable
2546
- def find_in_path(file, envvar = 'PATH')
2547
- env.find_in_path(file, envvar)
2553
+ def find_in_path(file)
2554
+ path = ENV['PATH'].split(File::PATH_SEPARATOR).
2555
+ find { |dir| File.exist?(File.join(dir, file)) }
2556
+ if path
2557
+ return File.join(path, file)
2558
+ end
2548
2559
  end
2549
2560
 
2550
2561
  # Resolves the absolute path to a given tool
2551
- def tool_in_path(name, env: self.env)
2562
+ def tool_in_path(name)
2552
2563
  path, path_name, path_env = programs_in_path[name]
2553
2564
  current = tool(name)
2554
- env_PATH = env.resolved_env['PATH']
2555
- if (path_env != env_PATH) || (path_name != current)
2565
+ if path_env != ENV['PATH'] || path_name != current
2556
2566
  # Delete the current entry given that it is invalid
2557
2567
  programs_in_path.delete(name)
2558
2568
  if current[0, 1] == "/"
@@ -2572,7 +2582,7 @@ module Autobuild
2572
2582
  elsif !File.executable?(path)
2573
2583
  raise ArgumentError, "tool #{name} is set to #{current}, but this resolves to #{path} which is not executable"
2574
2584
  end
2575
- programs_in_path[name] = [path, current, env_PATH]
2585
+ programs_in_path[name] = [path, current, ENV['PATH']]
2576
2586
  end
2577
2587
 
2578
2588
  return path
@@ -32,6 +32,10 @@ module Autoproj
32
32
  @silent = true
33
33
  end
34
34
 
35
+ def parse_package_entry(entry)
36
+ entry
37
+ end
38
+
35
39
  # The primary name for this package manager
36
40
  def name
37
41
  names.first
@@ -1441,11 +1445,15 @@ fi
1441
1445
  end
1442
1446
 
1443
1447
  result.map do |handler, status, entries|
1444
- if handler.respond_to?(:parse_package_entry)
1445
- [handler, status, entries.map { |s| handler.parse_package_entry(s) }]
1446
- else
1447
- [handler, status, entries]
1448
+ entries = entries.map do |e|
1449
+ if e.respond_to?(:to_str)
1450
+ handler.parse_package_entry(e)
1451
+ else
1452
+ e
1453
+ end
1448
1454
  end
1455
+
1456
+ [handler, status, entries]
1449
1457
  end
1450
1458
  end
1451
1459
 
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.13.6"
2
+ VERSION = "1.13.7"
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.13.6
4
+ version: 1.13.7
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: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-10-03 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.15'
75
+ version: '3.14'
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.15'
82
+ version: '3.14'
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.