autoproj 1.9.0.rc3 → 1.9.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/autoproj-inspect CHANGED
@@ -19,6 +19,20 @@ end
19
19
  resolved_selection = Autoproj::CmdLine.resolve_user_selection(user_selection, :filter => false)
20
20
  packages = resolved_selection.selection.keys
21
21
 
22
+ def find_selection_path(from, to)
23
+ path = [from]
24
+ if from == to
25
+ return path
26
+ end
27
+
28
+ Autobuild::Package[from].dependencies.each do |dep_pkg_name|
29
+ if result = find_selection_path(dep_pkg_name, to)
30
+ return path + result
31
+ end
32
+ end
33
+ nil
34
+ end
35
+
22
36
  packages.each do |name|
23
37
  result = Autoproj.manifest.resolve_package_name(name, :filter => false)
24
38
  packages, osdeps = result.partition { |type, name| type == :package }
@@ -37,13 +51,13 @@ packages.each do |name|
37
51
  puts " is directly selected by the manifest via #{selection.to_a.join(", ")}"
38
52
  end
39
53
  else
40
- puts " is not directly selected by the manifest"
54
+ puts " is not directly selected by the manifest"
41
55
  end
42
56
  if Autoproj.manifest.ignored?(pkg_name)
43
- puts " is ignored"
57
+ puts " is ignored"
44
58
  end
45
59
  if Autoproj.manifest.excluded?(pkg_name)
46
- puts " is excluded: #{Autoproj.manifest.exclusion_reason(pkg_name)}"
60
+ puts " is excluded: #{Autoproj.manifest.exclusion_reason(pkg_name)}"
47
61
  end
48
62
 
49
63
  all_reverse_dependencies = Set.new
@@ -54,10 +68,10 @@ packages.each do |name|
54
68
  all_reverse_dependencies << parent_name
55
69
  pkg_revdeps.concat(revdeps[parent_name].to_a)
56
70
  end
57
- if pkg_revdeps.empty?
71
+ if all_reverse_dependencies.empty?
58
72
  puts " no reverse dependencies"
59
73
  else
60
- puts " reverse dependencies: #{pkg_revdeps.map(&:name).sort.join(", ")}"
74
+ puts " reverse dependencies: #{all_reverse_dependencies.sort.join(", ")}"
61
75
  end
62
76
 
63
77
  selections = Set.new
@@ -67,8 +81,13 @@ packages.each do |name|
67
81
  selections |= default_packages.selection[parent_name]
68
82
  end
69
83
  end
84
+
70
85
  if !selections.empty?
71
- puts " selected by way of #{selections.to_a.join(", ")}"
86
+ puts " selected by way of"
87
+ selections.each do |root_pkg|
88
+ path = find_selection_path(root_pkg, pkg_name)
89
+ puts " #{path.join(">")}"
90
+ end
72
91
  end
73
92
  puts " directly depends on: #{Autobuild::Package[pkg_name].dependencies.sort.join(", ")}"
74
93
  end
@@ -1424,12 +1424,6 @@ So, what do you want ? (all, ruby, os or none)
1424
1424
 
1425
1425
  # Requests the installation of the given set of packages
1426
1426
  def install(packages, package_osdeps = Hash.new)
1427
- #not sure here, simply show that it is installed even we dont install anything,
1428
- #because this functions seems to called sometimes even --no-osdeps is given or the installs_os_packages? return false
1429
- #it seems its not checked everywhere, so add this sainty check here
1430
- return true if not installs_os_packages?
1431
-
1432
-
1433
1427
  os_package_handler.enabled = installs_os_packages?
1434
1428
  os_package_handler.silent = self.silent?
1435
1429
  package_handlers['gem'].enabled = installs_ruby_packages?
@@ -1841,6 +1835,9 @@ module Autoproj
1841
1835
 
1842
1836
  File.open(filename, "w") do |io|
1843
1837
  Autobuild.export_env_sh(io)
1838
+ if Autobuild.environment.has_key?('GEM_PATH')
1839
+ io.puts "export GEM_PATH=$GEM_PATH:#{Gem.default_path.join(":")}"
1840
+ end
1844
1841
  end
1845
1842
  end
1846
1843
 
@@ -899,6 +899,9 @@ where 'mode' is one of:
899
899
  @color = flag
900
900
  Autobuild.color = flag
901
901
  end
902
+ opts.on("--[no-]progress", "enable or disable progress display (enabled by default)") do |flag|
903
+ Autobuild.progress_display_enabled = flag
904
+ end
902
905
  opts.on("--version", "displays the version and then exits") do
903
906
  puts "autoproj v#{Autoproj::VERSION}"
904
907
  exit(0)
@@ -1325,12 +1325,6 @@ So, what do you want ? (all, ruby, os or none)
1325
1325
 
1326
1326
  # Requests the installation of the given set of packages
1327
1327
  def install(packages, package_osdeps = Hash.new)
1328
- #not sure here, simply show that it is installed even we dont install anything,
1329
- #because this functions seems to called sometimes even --no-osdeps is given or the installs_os_packages? return false
1330
- #it seems its not checked everywhere, so add this sainty check here
1331
- return true if not installs_os_packages?
1332
-
1333
-
1334
1328
  os_package_handler.enabled = installs_os_packages?
1335
1329
  os_package_handler.silent = self.silent?
1336
1330
  package_handlers['gem'].enabled = installs_ruby_packages?
@@ -175,6 +175,9 @@ module Autoproj
175
175
 
176
176
  File.open(filename, "w") do |io|
177
177
  Autobuild.export_env_sh(io)
178
+ if Autobuild.environment.has_key?('GEM_PATH')
179
+ io.puts "export GEM_PATH=$GEM_PATH:#{Gem.default_path.join(":")}"
180
+ end
178
181
  end
179
182
  end
180
183
 
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.9.0.rc3"
2
+ VERSION = "1.9.0.rc4"
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.9.0.rc3
4
+ version: 1.9.0.rc4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-26 00:00:00.000000000 Z
12
+ date: 2012-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: autobuild
16
- requirement: &13808300 !ruby/object:Gem::Requirement
16
+ requirement: &17687980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.6.0.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *13808300
24
+ version_requirements: *17687980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: utilrb
27
- requirement: &13807640 !ruby/object:Gem::Requirement
27
+ requirement: &17686580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.6.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *13807640
35
+ version_requirements: *17686580
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: highline
38
- requirement: &13806680 !ruby/object:Gem::Requirement
38
+ requirement: &17685660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.5.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *13806680
46
+ version_requirements: *17685660
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc
49
- requirement: &13805300 !ruby/object:Gem::Requirement
49
+ requirement: &17684660 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '3.10'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *13805300
57
+ version_requirements: *17684660
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: hoe
60
- requirement: &13804400 !ruby/object:Gem::Requirement
60
+ requirement: &17700960 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '3.3'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *13804400
68
+ version_requirements: *17700960
69
69
  description: autoproj is a manager for sets of software packages. It allows the user
70
70
  to import and build packages from source, still using the underlying distribution's
71
71
  native package manager for software that is available on it.