autoproj 1.8.2.b15 → 1.8.2.b16
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/autoproj_bootstrap +41 -13
- data/lib/autoproj/default.osdeps +57 -33
- data/lib/autoproj/osdeps.rb +19 -11
- data/lib/autoproj/version.rb +1 -1
- metadata +12 -12
data/bin/autoproj_bootstrap
CHANGED
@@ -295,19 +295,27 @@ fi
|
|
295
295
|
end
|
296
296
|
|
297
297
|
def filter_uptodate_packages(packages)
|
298
|
-
result = `LANG=C rpm -q '#{packages.join("' '")}'`
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
298
|
+
result = `LANG=C rpm -q --queryformat "%{NAME}\n" '#{packages.join("' '")}'`
|
299
|
+
|
300
|
+
installed_packages = []
|
301
|
+
new_packages = []
|
302
|
+
result.split("\n").each_with_index do |line, index|
|
303
|
+
line = line.strip
|
304
|
+
if line =~ /package (.*) is not installed/
|
305
|
+
package_name = $1
|
306
|
+
if !packages.include?(package_name) # something is wrong, fallback to installing everything
|
307
|
+
return packages
|
308
|
+
end
|
309
|
+
new_packages << package_name
|
310
|
+
else
|
311
|
+
package_name = line.strip
|
312
|
+
if !packages.include?(package_name) # something is wrong, fallback to installing everything
|
313
|
+
return packages
|
314
|
+
end
|
315
|
+
installed_packages << package_name
|
308
316
|
end
|
309
|
-
result
|
310
317
|
end
|
318
|
+
new_packages
|
311
319
|
end
|
312
320
|
end
|
313
321
|
|
@@ -1792,6 +1800,11 @@ ruby18:
|
|
1792
1800
|
gentoo:
|
1793
1801
|
- dev-lang/ruby:1.8
|
1794
1802
|
- rake
|
1803
|
+
fedora:
|
1804
|
+
'15,16':
|
1805
|
+
- ruby
|
1806
|
+
- rubygems
|
1807
|
+
default: nonexistent
|
1795
1808
|
ruby19:
|
1796
1809
|
debian:
|
1797
1810
|
- ruby1.9.1
|
@@ -1812,12 +1825,16 @@ ruby19:
|
|
1812
1825
|
arch:
|
1813
1826
|
- ruby
|
1814
1827
|
- rake
|
1828
|
+
fedora:
|
1829
|
+
'17':
|
1830
|
+
- ruby
|
1831
|
+
- rubygems
|
1832
|
+
default: nonexistent
|
1815
1833
|
build-essential:
|
1816
1834
|
debian,ubuntu: build-essential
|
1817
1835
|
gentoo: ignore
|
1818
1836
|
arch: ignore
|
1819
|
-
|
1820
|
-
debian,ubuntu: zlib1g-dev
|
1837
|
+
fedora: ignore
|
1821
1838
|
autobuild: gem
|
1822
1839
|
autoproj: gem
|
1823
1840
|
git:
|
@@ -1827,14 +1844,17 @@ git:
|
|
1827
1844
|
ubuntu: git-core
|
1828
1845
|
gentoo: dev-vcs/git
|
1829
1846
|
arch: git
|
1847
|
+
fedora: git
|
1830
1848
|
svn:
|
1831
1849
|
debian,ubuntu: subversion
|
1832
1850
|
gentoo: dev-util/subversion
|
1833
1851
|
arch: subversion
|
1852
|
+
fedora: subversion
|
1834
1853
|
cmake:
|
1835
1854
|
debian,ubuntu: cmake
|
1836
1855
|
gentoo: dev-util/cmake
|
1837
1856
|
arch: cmake
|
1857
|
+
fedora: cmake
|
1838
1858
|
autotools:
|
1839
1859
|
debian,ubuntu:
|
1840
1860
|
- automake1.9
|
@@ -1843,10 +1863,14 @@ autotools:
|
|
1843
1863
|
- sys-devel/automake:1.9
|
1844
1864
|
- sys-devel/autoconf
|
1845
1865
|
arch: automake autoconf
|
1866
|
+
fedora:
|
1867
|
+
- automake
|
1868
|
+
- autoconf
|
1846
1869
|
lsb_release:
|
1847
1870
|
debian,ubuntu: lsb-release
|
1848
1871
|
gentoo: sys-apps/lsb-release
|
1849
1872
|
arch: ignore
|
1873
|
+
fedora: redhat-lsb
|
1850
1874
|
archive:
|
1851
1875
|
debian,ubuntu:
|
1852
1876
|
- tar
|
@@ -1857,8 +1881,12 @@ archive:
|
|
1857
1881
|
arch:
|
1858
1882
|
- tar
|
1859
1883
|
- unzip
|
1884
|
+
fedora:
|
1885
|
+
- tar
|
1886
|
+
- unzip
|
1860
1887
|
cvs:
|
1861
1888
|
debian,ubuntu: cvs
|
1889
|
+
fedora: cvs
|
1862
1890
|
|
1863
1891
|
EODEFS
|
1864
1892
|
|
data/lib/autoproj/default.osdeps
CHANGED
@@ -12,7 +12,11 @@ ruby18:
|
|
12
12
|
gentoo:
|
13
13
|
- dev-lang/ruby:1.8
|
14
14
|
- rake
|
15
|
-
|
15
|
+
fedora:
|
16
|
+
"15,16":
|
17
|
+
- ruby
|
18
|
+
- rubygems
|
19
|
+
default: nonexistent
|
16
20
|
ruby19:
|
17
21
|
debian:
|
18
22
|
- ruby1.9.1
|
@@ -34,54 +38,74 @@ ruby19:
|
|
34
38
|
arch:
|
35
39
|
- ruby
|
36
40
|
- rake
|
41
|
+
fedora:
|
42
|
+
"17":
|
43
|
+
- ruby
|
44
|
+
- rubygems
|
45
|
+
default: nonexistent
|
37
46
|
|
38
47
|
build-essential:
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
zlib:
|
44
|
-
debian,ubuntu: zlib1g-dev
|
45
|
-
|
48
|
+
debian,ubuntu: build-essential
|
49
|
+
gentoo: ignore
|
50
|
+
arch: ignore
|
51
|
+
fedora: ignore
|
46
52
|
|
47
53
|
autobuild: gem
|
48
54
|
autoproj: gem
|
49
55
|
|
50
56
|
# The following definitions are for the VCS and build systems
|
51
57
|
git:
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
58
|
+
debian:
|
59
|
+
lenny: git
|
60
|
+
default: git-core
|
61
|
+
ubuntu: git-core
|
62
|
+
gentoo: dev-vcs/git
|
63
|
+
arch: git
|
64
|
+
fedora: git
|
59
65
|
svn:
|
60
|
-
|
61
|
-
|
62
|
-
|
66
|
+
debian,ubuntu: subversion
|
67
|
+
gentoo: dev-util/subversion
|
68
|
+
arch: subversion
|
69
|
+
fedora: subversion
|
63
70
|
cmake:
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
71
|
+
debian,ubuntu: cmake
|
72
|
+
gentoo: dev-util/cmake
|
73
|
+
arch: cmake
|
74
|
+
fedora: cmake
|
68
75
|
autotools:
|
69
|
-
|
70
|
-
|
71
|
-
|
76
|
+
debian,ubuntu:
|
77
|
+
- "automake1.9"
|
78
|
+
- autoconf
|
79
|
+
gentoo:
|
80
|
+
- "sys-devel/automake:1.9"
|
81
|
+
- sys-devel/autoconf
|
82
|
+
arch: automake autoconf
|
83
|
+
fedora:
|
84
|
+
- automake
|
85
|
+
- autoconf
|
72
86
|
|
73
87
|
lsb_release:
|
74
|
-
|
75
|
-
|
76
|
-
|
88
|
+
debian,ubuntu: lsb-release
|
89
|
+
gentoo: sys-apps/lsb-release
|
90
|
+
arch: ignore
|
91
|
+
fedora: redhat-lsb
|
77
92
|
|
78
93
|
archive:
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
94
|
+
debian,ubuntu:
|
95
|
+
- tar
|
96
|
+
- unzip
|
97
|
+
gentoo:
|
98
|
+
- app-arch/tar
|
99
|
+
- app-arch/unzip
|
100
|
+
arch:
|
101
|
+
- tar
|
102
|
+
- unzip
|
103
|
+
fedora:
|
104
|
+
- tar
|
105
|
+
- unzip
|
83
106
|
cvs:
|
84
|
-
|
107
|
+
debian,ubuntu: cvs
|
108
|
+
fedora: cvs
|
85
109
|
|
86
110
|
# vim: expandtab
|
87
111
|
|
data/lib/autoproj/osdeps.rb
CHANGED
@@ -196,19 +196,27 @@ fi
|
|
196
196
|
end
|
197
197
|
|
198
198
|
def filter_uptodate_packages(packages)
|
199
|
-
result = `LANG=C rpm -q '#{packages.join("' '")}'`
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
199
|
+
result = `LANG=C rpm -q --queryformat "%{NAME}\n" '#{packages.join("' '")}'`
|
200
|
+
|
201
|
+
installed_packages = []
|
202
|
+
new_packages = []
|
203
|
+
result.split("\n").each_with_index do |line, index|
|
204
|
+
line = line.strip
|
205
|
+
if line =~ /package (.*) is not installed/
|
206
|
+
package_name = $1
|
207
|
+
if !packages.include?(package_name) # something is wrong, fallback to installing everything
|
208
|
+
return packages
|
209
|
+
end
|
210
|
+
new_packages << package_name
|
211
|
+
else
|
212
|
+
package_name = line.strip
|
213
|
+
if !packages.include?(package_name) # something is wrong, fallback to installing everything
|
214
|
+
return packages
|
215
|
+
end
|
216
|
+
installed_packages << package_name
|
209
217
|
end
|
210
|
-
result
|
211
218
|
end
|
219
|
+
new_packages
|
212
220
|
end
|
213
221
|
end
|
214
222
|
|
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.8.2.
|
4
|
+
version: 1.8.2.b16
|
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-10-
|
12
|
+
date: 2012-10-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: autobuild
|
16
|
-
requirement: &
|
16
|
+
requirement: &17073020 !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: *17073020
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: utilrb
|
27
|
-
requirement: &
|
27
|
+
requirement: &17072460 !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: *17072460
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: highline
|
38
|
-
requirement: &
|
38
|
+
requirement: &17071900 !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: *17071900
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rdoc
|
49
|
-
requirement: &
|
49
|
+
requirement: &17071040 !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: *17071040
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: hoe
|
60
|
-
requirement: &
|
60
|
+
requirement: &17069660 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '3.1'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *17069660
|
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.
|