]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-758153-versioned-provides-support
4 # dpkg implements versioned provides in commit 5bb02fe80e9f40dcad9703a72f67cf615ff217b5
5 # but previous versions seem to allow parsing, working and ignoring it.
7 TESTDIR
=$(readlink -f $(dirname $0))
10 configarchitecture
'amd64' 'i386'
12 insertinstalledpackage
'webapp' 'all' '1' 'Depends: httpd'
13 insertinstalledpackage
'webserver' 'all' '1' 'Provides: httpd'
15 insertpackage
'unstable' 'webapp' 'all' '2' 'Depends: httpd (>= 2)'
16 insertpackage
'unstable' 'webserver' 'amd64' '2' 'Provides: httpd (= 2)'
17 insertpackage
'unstable' 'foreign-webserver' 'i386' '2' 'Multi-Arch: foreign
18 Provides: httpd (= 2)'
20 insertpackage
'experimental' 'webapp' 'all' '3' 'Depends: httpd (>= 1.5)'
21 insertpackage
'experimental' 'webserver' 'amd64' '3' 'Provides: httpd (= 3)'
23 insertpackage
'experimental' 'foreign-webserver' 'i386' '4' 'Multi-Arch: foreign
24 Provides: httpd (= 4)'
25 insertpackage
'experimental' 'cool-webapp' 'all' '4' 'Depends: httpd (>= 4)'
27 # arch-qualified provides, see #777071
28 insertpackage
'unstable' 'foo' 'all' '1' 'Provides: bar:i386'
29 insertpackage
'unstable' 'baz' 'i386,amd64' '1' 'Depends: bar'
30 insertpackage
'experimental' 'baz' 'i386,amd64' '2' 'Depends: bar:i386'
31 insertpackage
'experimental' 'baz-broken' 'i386' '2' 'Depends: bar:amd64'
33 insertpackage
'unstable' 'next' 'amd64' '1' 'Multi-Arch: foreign
35 insertpackage
'unstable' 'needsrealnext' 'amd64,i386' '2' 'Depends: next (>= 2)'
37 insertpackage
'unstable' 'virtualnext2' 'amd64' '1' 'Multi-Arch: foreign
38 Provides: next2 (= 2)'
39 insertpackage
'unstable' 'needsnext2' 'amd64,i386' '2' 'Depends: next2 (>= 2)'
41 insertpackage
'unstable' 'virtualnext3' 'amd64' '1' 'Multi-Arch: no
42 Provides: next3 (= 2)'
43 insertpackage
'unstable' 'needsnext3' 'amd64,i386' '2' 'Depends: next3 (>= 2)'
47 testsuccessequal
'Reading package lists...
48 Building dependency tree...
49 Calculating upgrade...
50 The following packages will be upgraded:
52 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
53 Inst webserver [1] (2 unstable [amd64])
54 Inst webapp [1] (2 unstable [all])
55 Conf webserver (2 unstable [amd64])
56 Conf webapp (2 unstable [all])' aptget dist
-upgrade -s
58 testsuccessequal
'Reading package lists...
59 Building dependency tree...
60 The following packages will be upgraded:
62 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
63 Inst webserver [1] (2 unstable [amd64])
64 Inst webapp [1] (2 unstable [all])
65 Conf webserver (2 unstable [amd64])
66 Conf webapp (2 unstable [all])' aptget
install webapp webserver
-s
68 testsuccessequal
'Reading package lists...
69 Building dependency tree...
70 The following packages will be upgraded:
72 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
73 Inst webserver [1] (2 unstable [amd64])
74 Inst webapp [1] (3 experimental [all])
75 Conf webserver (2 unstable [amd64])
76 Conf webapp (3 experimental [all])' aptget
install webapp
=3 webserver
-s
78 testsuccessequal
'Reading package lists...
79 Building dependency tree...
80 The following packages will be upgraded:
82 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
83 Inst webserver [1] (3 experimental [amd64])
84 Inst webapp [1] (2 unstable [all])
85 Conf webserver (3 experimental [amd64])
86 Conf webapp (2 unstable [all])' aptget
install webapp webserver
=3 -s
88 testsuccessequal
'Reading package lists...
89 Building dependency tree...
90 The following NEW packages will be installed:
91 foreign-webserver:i386
92 The following packages will be upgraded:
94 1 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
95 Inst foreign-webserver:i386 (2 unstable [i386])
96 Inst webapp [1] (2 unstable [all])
97 Conf foreign-webserver:i386 (2 unstable [i386])
98 Conf webapp (2 unstable [all])' aptget
install webapp foreign
-webserver:i386
-s
100 testsuccessequal
'Reading package lists...
101 Building dependency tree...
102 The following NEW packages will be installed:
103 foreign-webserver:i386
104 The following packages will be upgraded:
106 1 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
107 Inst foreign-webserver:i386 (2 unstable [i386])
108 Inst webapp [1] (3 experimental [all])
109 Conf foreign-webserver:i386 (2 unstable [i386])
110 Conf webapp (3 experimental [all])' aptget
install webapp
=3 foreign
-webserver:i386
-s
112 testsuccessequal
'Reading package lists...
113 Building dependency tree...
114 The following NEW packages will be installed:
115 foreign-webserver:i386
116 The following packages will be upgraded:
118 1 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
119 Inst foreign-webserver:i386 (4 experimental [i386])
120 Inst webapp [1] (2 unstable [all])
121 Conf foreign-webserver:i386 (4 experimental [i386])
122 Conf webapp (2 unstable [all])' aptget
install webapp foreign
-webserver:i386
=4 -s
124 testfailureequal
'Reading package lists...
125 Building dependency tree...
126 Some packages could not be installed. This may mean that you have
127 requested an impossible situation or if you are using the unstable
128 distribution that some required packages have not yet been created
129 or been moved out of Incoming.
130 The following information may help to resolve the situation:
132 The following packages have unmet dependencies:
133 cool-webapp : Depends: httpd (>= 4)
134 E: Unable to correct problems, you have held broken packages.' aptget
install cool
-webapp -s
136 testfailureequal
'Reading package lists...
137 Building dependency tree...
138 Some packages could not be installed. This may mean that you have
139 requested an impossible situation or if you are using the unstable
140 distribution that some required packages have not yet been created
141 or been moved out of Incoming.
142 The following information may help to resolve the situation:
144 The following packages have unmet dependencies:
145 cool-webapp : Depends: httpd (>= 4)
146 E: Unable to correct problems, you have held broken packages.' aptget
install cool
-webapp foreign
-webserver:i386
-s
148 testsuccessequal
'Reading package lists...
149 Building dependency tree...
150 The following NEW packages will be installed:
151 cool-webapp foreign-webserver:i386
152 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
153 Inst foreign-webserver:i386 (4 experimental [i386])
154 Inst cool-webapp (4 experimental [all])
155 Conf foreign-webserver:i386 (4 experimental [i386])
156 Conf cool-webapp (4 experimental [all])' aptget
install cool
-webapp foreign
-webserver:i386
=4 -s
158 testsuccessequal
'Reading package lists...
159 Building dependency tree...
160 The following additional packages will be installed:
162 The following NEW packages will be installed:
164 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
165 Inst foo (1 unstable [all])
166 Inst baz:i386 (1 unstable [i386])
167 Conf foo (1 unstable [all])
168 Conf baz:i386 (1 unstable [i386])' aptget
install baz
:i386
-s
170 testfailureequal
'Reading package lists...
171 Building dependency tree...
172 Some packages could not be installed. This may mean that you have
173 requested an impossible situation or if you are using the unstable
174 distribution that some required packages have not yet been created
175 or been moved out of Incoming.
176 The following information may help to resolve the situation:
178 The following packages have unmet dependencies:
179 baz : Depends: bar but it is not installable
180 E: Unable to correct problems, you have held broken packages.' aptget
install baz
:amd64
-s
182 testsuccessequal
"Reading package lists...
183 Building dependency tree...
184 Selected version '2' (experimental [amd64]) for 'baz'
185 The following additional packages will be installed:
187 The following NEW packages will be installed:
189 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
190 Inst foo (1 unstable [all])
191 Inst baz (2 experimental [amd64])
192 Conf foo (1 unstable [all])
193 Conf baz (2 experimental [amd64])" aptget
install baz
/experimental
-s -q=0
195 testsuccessequal
"Reading package lists...
196 Building dependency tree...
197 Selected version '2' (experimental [i386]) for 'baz:i386'
198 The following additional packages will be installed:
200 The following NEW packages will be installed:
202 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
203 Inst foo (1 unstable [all])
204 Inst baz:i386 (2 experimental [i386])
205 Conf foo (1 unstable [all])
206 Conf baz:i386 (2 experimental [i386])" aptget
install baz
:i
386/experimental
-s -q=0
208 testfailureequal
'Reading package lists...
209 Building dependency tree...
210 Some packages could not be installed. This may mean that you have
211 requested an impossible situation or if you are using the unstable
212 distribution that some required packages have not yet been created
213 or been moved out of Incoming.
214 The following information may help to resolve the situation:
216 The following packages have unmet dependencies:
217 baz-broken:i386 : Depends: bar but it is not installable
218 E: Unable to correct problems, you have held broken packages.' aptget
install baz
-broken -s
220 testsuccessequal
'Reading package lists...
221 Building dependency tree...
222 The following additional packages will be installed:
224 The following NEW packages will be installed:
226 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
227 Inst next (1 unstable [amd64])
228 Inst needsrealnext (2 unstable [amd64])
229 Conf next (1 unstable [amd64])
230 Conf needsrealnext (2 unstable [amd64])' aptget
install needsrealnext
-s
232 testsuccessequal
'Reading package lists...
233 Building dependency tree...
234 The following additional packages will be installed:
236 The following NEW packages will be installed:
237 needsrealnext:i386 next
238 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
239 Inst next (1 unstable [amd64])
240 Inst needsrealnext:i386 (2 unstable [i386])
241 Conf next (1 unstable [amd64])
242 Conf needsrealnext:i386 (2 unstable [i386])' aptget
install needsrealnext
:i386
-s
244 testsuccessequal
'Reading package lists...
245 Building dependency tree...
246 The following additional packages will be installed:
248 The following NEW packages will be installed:
249 needsnext2 virtualnext2
250 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
251 Inst virtualnext2 (1 unstable [amd64])
252 Inst needsnext2 (2 unstable [amd64])
253 Conf virtualnext2 (1 unstable [amd64])
254 Conf needsnext2 (2 unstable [amd64])' aptget
install needsnext2
-s
256 testsuccessequal
'Reading package lists...
257 Building dependency tree...
258 The following additional packages will be installed:
260 The following NEW packages will be installed:
261 needsnext2:i386 virtualnext2
262 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
263 Inst virtualnext2 (1 unstable [amd64])
264 Inst needsnext2:i386 (2 unstable [i386])
265 Conf virtualnext2 (1 unstable [amd64])
266 Conf needsnext2:i386 (2 unstable [i386])' aptget
install needsnext2
:i386
-s
268 testsuccessequal
'Reading package lists...
269 Building dependency tree...
270 The following additional packages will be installed:
272 The following NEW packages will be installed:
273 needsnext3 virtualnext3
274 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
275 Inst virtualnext3 (1 unstable [amd64])
276 Inst needsnext3 (2 unstable [amd64])
277 Conf virtualnext3 (1 unstable [amd64])
278 Conf needsnext3 (2 unstable [amd64])' aptget
install needsnext3
-s
280 testfailureequal
'Reading package lists...
281 Building dependency tree...
282 Some packages could not be installed. This may mean that you have
283 requested an impossible situation or if you are using the unstable
284 distribution that some required packages have not yet been created
285 or been moved out of Incoming.
286 The following information may help to resolve the situation:
288 The following packages have unmet dependencies:
289 needsnext3:i386 : Depends: next3:i386 (>= 2) but it is not installable
290 E: Unable to correct problems, you have held broken packages.' aptget
install needsnext3
:i386
-s