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 +25 -6
- data/bin/autoproj_bootstrap +3 -6
- data/lib/autoproj/cmdline.rb +3 -0
- data/lib/autoproj/osdeps.rb +0 -6
- data/lib/autoproj/system.rb +3 -0
- data/lib/autoproj/version.rb +1 -1
- metadata +12 -12
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 "
|
54
|
+
puts " is not directly selected by the manifest"
|
41
55
|
end
|
42
56
|
if Autoproj.manifest.ignored?(pkg_name)
|
43
|
-
puts "
|
57
|
+
puts " is ignored"
|
44
58
|
end
|
45
59
|
if Autoproj.manifest.excluded?(pkg_name)
|
46
|
-
puts "
|
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
|
71
|
+
if all_reverse_dependencies.empty?
|
58
72
|
puts " no reverse dependencies"
|
59
73
|
else
|
60
|
-
puts " reverse dependencies: #{
|
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
|
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
|
data/bin/autoproj_bootstrap
CHANGED
@@ -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
|
|
data/lib/autoproj/cmdline.rb
CHANGED
@@ -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)
|
data/lib/autoproj/osdeps.rb
CHANGED
@@ -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?
|
data/lib/autoproj/system.rb
CHANGED
data/lib/autoproj/version.rb
CHANGED
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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *17687980
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: utilrb
|
27
|
-
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: *
|
35
|
+
version_requirements: *17686580
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: highline
|
38
|
-
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: *
|
46
|
+
version_requirements: *17685660
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rdoc
|
49
|
-
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: *
|
57
|
+
version_requirements: *17684660
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: hoe
|
60
|
-
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: *
|
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.
|