]> git.saurik.com Git - apt.git/blame - test/integration/test-release-candidate-switching
* apt-pkg/depcache.cc:
[apt.git] / test / integration / test-release-candidate-switching
CommitLineData
2c085486
DK
1#!/bin/sh
2set -e
3
4local TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture "i386"
8
9insertpackage 'unstable' 'libc6' 'i386' '2.11.2-7+sid'
10insertpackage 'unstable' 'phonon-backend-xine' 'i386' '4:4.6.0really4.4.2-1+sid' 'Provides: phonon-backend'
11insertpackage 'unstable' 'phonon-backend-xine2' 'i386' '4:4.6.0really4.4.2-1+sid'
12insertpackage 'unstable' 'phonon-backend-xine3' 'i386' '4:4.6.0really4.4.2-1+sid'
13insertpackage 'unstable' 'phonon-backend-xine4' 'i386' '4:4.6.0really4.4.2-1+sid'
14insertpackage 'unstable' 'phonon-backend-null' 'i386' '4:4.20.0+sid' 'Provides: phonon-backend'
15insertpackage 'unstable' 'intermediatepkg' 'all' '1.0'
16
17insertpackage 'unstable' 'amarok-common' 'all' '2.3.1-1+sid'
18insertpackage 'unstable' 'amarok-utils' 'i386' '2.3.1-1+sid'
19insertpackage 'unstable' 'libmtp8' 'i386' '0.3.1+sid'
20insertpackage 'unstable' 'amarok' 'i386' '2.3.1-1+sid' 'Depends: amarok-common (= 2.3.1-1+sid), amarok-utils (= 2.3.1-1+sid), phonon-backend-xine | phonon-backend, libmtp8 (>= 0.3.1), libc6'
21
22insertpackage 'experimental' 'amarok-common' 'all' '2.3.2-2+exp'
23insertpackage 'experimental' 'amarok-utils' 'i386' '2.3.2-2+exp'
24insertpackage 'experimental' 'libmtp8' 'i386' '0.3.3+exp'
25insertpackage 'experimental' 'phonon-backend-xine' 'i386' '5:4.6.0+exp' 'Provides: phonon-backend'
26insertpackage 'experimental' 'phonon-backend-xine2' 'i386' '5:4.6.0+exp' 'Depends: uninstallablepkg
27Provides: phonon-backend-broken'
28insertpackage 'experimental' 'phonon-backend-xine3' 'i386' '5:4.6.0+exp' 'Depends: intermediatepkg (>= 1.5)'
29insertpackage 'experimental' 'phonon-backend-xine4' 'i386' '5:4.6.0+exp' 'Depends: intermediateuninstallablepkg (= 2.0)
30Provides: phonon-backend-broken'
31insertpackage 'experimental' 'intermediatepkg' 'all' '2.0' 'Depends: libc6'
32insertpackage 'experimental' 'intermediateuninstallablepkg' 'all' '2.0' 'Depends: uninstallablepkg'
33insertpackage 'experimental' 'phonon-backend-null' 'i386' '5:4.20.0+exp' 'Provides: phonon-backend'
34insertpackage 'experimental' 'amarok' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), amarok-utils (= 2.3.2-2+exp), phonon-backend-xine | phonon-backend, libmtp8 (>= 0.3.1), libc6'
35
36insertpackage 'experimental2' 'phonon-backend-xine' 'i386' '5:4.00.0+exp' 'Provides: phonon-backend'
37insertpackage 'experimental2' 'amarok-less' 'i386' '2.3.2-2+exp' 'Depends: amarok-common, phonon-backend-xine (>= 5:4.00.0+exp), libmtp8, libc6, amarok-utils'
38insertpackage 'experimental' 'amarok-higher' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-xine (>= 5:4.6.0+exp), libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
39
40insertpackage 'experimental' 'amarok-null' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-xine (= 1:1.0-1) | phonon-backend, libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
41insertpackage 'experimental' 'amarok-null2' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-null (= 1:1.0-1) | phonon-backend, libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
42insertpackage 'experimental' 'amarok-null2' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-null (= 1:1.0-1) | phonon-backend, libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
43insertpackage 'experimental' 'amarok-xine' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-xine (= 5:4.6.0+exp) | phonon-backend-null (= 5:4.20.0+exp), libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
44insertpackage 'experimental' 'amarok-xine2' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-xine2 (= 5:4.6.0+exp) | phonon-backend-null (= 5:4.20.0+exp), libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
45insertpackage 'experimental' 'amarok-xine3' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-xine3 (= 5:4.6.0+exp) | phonon-backend-null (= 5:4.20.0+exp), libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
46insertpackage 'experimental' 'amarok-xine4' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-xine4 (= 5:4.6.0+exp) | phonon-backend-null (= 5:4.20.0+exp), libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
47insertpackage 'experimental' 'amarok-broken' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp), phonon-backend-broken | phonon-backend-null (= 5:4.20.0+exp), libmtp8 (>= 0.3.1), libc6, amarok-utils (= 2.3.2-2+exp)'
48
49insertpackage 'experimental' 'amarok-recommends' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp)
50Recommends: amarok-utils (= 2.3.2-2+exp), phonon-backend-xine | phonon-backend, libmtp8 (>= 0.3.1), libc6'
51insertpackage 'experimental' 'amarok-recommends2' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp)
52Recommends: amarok-utils (= 2.30.2-2+exp), phonon-backend-xine | phonon-backend, libmtp8 (>= 0.3.1), libc6'
53
54insertpackage 'experimental' 'uninstallablepkg' 'all' '1.0' 'Depends: libmtp8 (>= 10:0.20.1), amarok-utils (= 2.3.2-2+exp)'
55
56setupaptarchive
57
58testequal "Reading package lists...
59Building dependency tree...
60The following extra packages will be installed:
61 amarok-common (2.3.1-1+sid)
62 amarok-utils (2.3.1-1+sid)
63 libc6 (2.11.2-7+sid)
64 libmtp8 (0.3.1+sid)
65 phonon-backend-xine (4.6.0really4.4.2-1+sid)
66The following NEW packages will be installed:
67 amarok (2.3.1-1+sid)
68 amarok-common (2.3.1-1+sid)
69 amarok-utils (2.3.1-1+sid)
70 libc6 (2.11.2-7+sid)
71 libmtp8 (0.3.1+sid)
72 phonon-backend-xine (4.6.0really4.4.2-1+sid)
730 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
74After this operation, 258 kB of additional disk space will be used.
75E: Trivial Only specified but this is not a trivial operation." aptget install amarok --trivial-only -V -q=0
76
77testequal "Reading package lists...
78Building dependency tree...
79The following extra packages will be installed:
80 amarok-common (2.3.2-2+exp)
81 amarok-utils (2.3.2-2+exp)
82 libc6 (2.11.2-7+sid)
83 libmtp8 (0.3.3+exp)
84 phonon-backend-xine (4.6.0+exp)
85The following NEW packages will be installed:
86 amarok (2.3.2-2+exp)
87 amarok-common (2.3.2-2+exp)
88 amarok-utils (2.3.2-2+exp)
89 libc6 (2.11.2-7+sid)
90 libmtp8 (0.3.3+exp)
91 phonon-backend-xine (4.6.0+exp)
920 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
93After this operation, 258 kB of additional disk space will be used.
94E: Trivial Only specified but this is not a trivial operation." aptget install amarok -t experimental --trivial-only -V -q=0
95
96testequal "Reading package lists...
97Building dependency tree...
98Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok'
99Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok'
100Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok'
101The following extra packages will be installed:
102 amarok (2.3.2-2+exp)
103 amarok-common (2.3.2-2+exp)
104 amarok-utils (2.3.2-2+exp)
105 libc6 (2.11.2-7+sid)
106 libmtp8 (0.3.1+sid)
107 phonon-backend-xine (4.6.0really4.4.2-1+sid)
108The following NEW packages will be installed:
109 amarok (2.3.2-2+exp)
110 amarok-common (2.3.2-2+exp)
111 amarok-utils (2.3.2-2+exp)
112 libc6 (2.11.2-7+sid)
113 libmtp8 (0.3.1+sid)
114 phonon-backend-xine (4.6.0really4.4.2-1+sid)
1150 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
116After this operation, 258 kB of additional disk space will be used.
117E: Trivial Only specified but this is not a trivial operation." aptget install amarok/experimental --trivial-only -V -q=0
118
119testequal "Reading package lists...
120Building dependency tree...
121Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-null'
122Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-null'
123Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-null'
124The following extra packages will be installed:
125 amarok-common (2.3.2-2+exp)
126 amarok-null (2.3.2-2+exp)
127 amarok-utils (2.3.2-2+exp)
128 libc6 (2.11.2-7+sid)
129 libmtp8 (0.3.1+sid)
130 phonon-backend-null (4.20.0+sid)
131The following NEW packages will be installed:
132 amarok-common (2.3.2-2+exp)
133 amarok-null (2.3.2-2+exp)
134 amarok-utils (2.3.2-2+exp)
135 libc6 (2.11.2-7+sid)
136 libmtp8 (0.3.1+sid)
137 phonon-backend-null (4.20.0+sid)
1380 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
139After this operation, 258 kB of additional disk space will be used.
140E: Trivial Only specified but this is not a trivial operation." aptget install amarok-null/experimental --trivial-only -V -q=0
141
142# do not select the same version multiple times
143testequal "Reading package lists...
144Building dependency tree...
145Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok'
146Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok'
147Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok'
148Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-null'
149The following extra packages will be installed:
150 amarok (2.3.2-2+exp)
151 amarok-common (2.3.2-2+exp)
152 amarok-null (2.3.2-2+exp)
153 amarok-utils (2.3.2-2+exp)
154 libc6 (2.11.2-7+sid)
155 libmtp8 (0.3.1+sid)
156 phonon-backend-xine (4.6.0really4.4.2-1+sid)
157The following NEW packages will be installed:
158 amarok (2.3.2-2+exp)
159 amarok-common (2.3.2-2+exp)
160 amarok-null (2.3.2-2+exp)
161 amarok-utils (2.3.2-2+exp)
162 libc6 (2.11.2-7+sid)
163 libmtp8 (0.3.1+sid)
164 phonon-backend-xine (4.6.0really4.4.2-1+sid)
1650 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
166After this operation, 301 kB of additional disk space will be used.
167E: Trivial Only specified but this is not a trivial operation." aptget install amarok/experimental amarok-null/experimental --trivial-only -V -q=0
168
169# … but thighten the version if needed
170# in theory, the second line is wrong, but printing the right version is too much of a hassle
171# (we have to check if later in the Changed list is another change and if so use this version
172# instead of the current candidate) - and it wouldn't be (really) useful anyway…
173testequal "Reading package lists...
174Building dependency tree...
175Selected version '2.3.2-2+exp' (experimental2 [i386]) for 'amarok-less'
176Selected version '5:4.6.0+exp' (experimental [i386]) for 'phonon-backend-xine' because of 'amarok-less'
177Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-higher'
178Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-higher'
179Selected version '5:4.6.0+exp' (experimental [i386]) for 'phonon-backend-xine' because of 'amarok-higher'
180Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-higher'
181The following extra packages will be installed:
182 amarok-common (2.3.2-2+exp)
183 amarok-higher (2.3.2-2+exp)
184 amarok-less (2.3.2-2+exp)
185 amarok-utils (2.3.2-2+exp)
186 libc6 (2.11.2-7+sid)
187 libmtp8 (0.3.1+sid)
188 phonon-backend-xine (4.6.0+exp)
189The following NEW packages will be installed:
190 amarok-common (2.3.2-2+exp)
191 amarok-higher (2.3.2-2+exp)
192 amarok-less (2.3.2-2+exp)
193 amarok-utils (2.3.2-2+exp)
194 libc6 (2.11.2-7+sid)
195 libmtp8 (0.3.1+sid)
196 phonon-backend-xine (4.6.0+exp)
1970 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
198After this operation, 301 kB of additional disk space will be used.
199E: Trivial Only specified but this is not a trivial operation." aptget install amarok-less/experimental2 amarok-higher/experimental --trivial-only -V -q=0
200
201# phonon-backend-null can't be used directly, but as it provides it is still fine…
202testequal "Reading package lists...
203Building dependency tree...
204Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-null2'
205Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-null2'
206Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-null2'
207The following extra packages will be installed:
208 amarok-common (2.3.2-2+exp)
209 amarok-null2 (2.3.2-2+exp)
210 amarok-utils (2.3.2-2+exp)
211 libc6 (2.11.2-7+sid)
212 libmtp8 (0.3.1+sid)
213 phonon-backend-null (4.20.0+sid)
214The following NEW packages will be installed:
215 amarok-common (2.3.2-2+exp)
216 amarok-null2 (2.3.2-2+exp)
217 amarok-utils (2.3.2-2+exp)
218 libc6 (2.11.2-7+sid)
219 libmtp8 (0.3.1+sid)
220 phonon-backend-null (4.20.0+sid)
2210 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
222After this operation, 258 kB of additional disk space will be used.
223E: Trivial Only specified but this is not a trivial operation." aptget install amarok-null2/experimental --trivial-only -V -q=0
224
225# if an or-group satisfier is already found, do not set others
226testequal "Reading package lists...
227Building dependency tree...
228Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-xine'
229Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-xine'
230Selected version '5:4.6.0+exp' (experimental [i386]) for 'phonon-backend-xine' because of 'amarok-xine'
231Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-xine'
232The following extra packages will be installed:
233 amarok-common (2.3.2-2+exp)
234 amarok-utils (2.3.2-2+exp)
235 amarok-xine (2.3.2-2+exp)
236 libc6 (2.11.2-7+sid)
237 libmtp8 (0.3.1+sid)
238 phonon-backend-xine (4.6.0+exp)
239The following NEW packages will be installed:
240 amarok-common (2.3.2-2+exp)
241 amarok-utils (2.3.2-2+exp)
242 amarok-xine (2.3.2-2+exp)
243 libc6 (2.11.2-7+sid)
244 libmtp8 (0.3.1+sid)
245 phonon-backend-xine (4.6.0+exp)
2460 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
247After this operation, 258 kB of additional disk space will be used.
248E: Trivial Only specified but this is not a trivial operation." aptget install amarok-xine/experimental --trivial-only -V -q=0
249
250# … but proceed testing if the first doesn't work out
251testequal "Reading package lists...
252Building dependency tree...
253Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-xine2'
254Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-xine2'
255Selected version '5:4.20.0+exp' (experimental [i386]) for 'phonon-backend-null' because of 'amarok-xine2'
256Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-xine2'
257The following extra packages will be installed:
258 amarok-common (2.3.2-2+exp)
259 amarok-utils (2.3.2-2+exp)
260 amarok-xine2 (2.3.2-2+exp)
261 libc6 (2.11.2-7+sid)
262 libmtp8 (0.3.1+sid)
263 phonon-backend-null (4.20.0+exp)
264The following NEW packages will be installed:
265 amarok-common (2.3.2-2+exp)
266 amarok-utils (2.3.2-2+exp)
267 amarok-xine2 (2.3.2-2+exp)
268 libc6 (2.11.2-7+sid)
269 libmtp8 (0.3.1+sid)
270 phonon-backend-null (4.20.0+exp)
2710 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
272After this operation, 258 kB of additional disk space will be used.
273E: Trivial Only specified but this is not a trivial operation." aptget install amarok-xine2/experimental --trivial-only -V -q=0
274
275# sometimes, the second level need to be corrected, too
276testequal "Reading package lists...
277Building dependency tree...
278Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-xine3'
279Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-xine3'
280Selected version '5:4.6.0+exp' (experimental [i386]) for 'phonon-backend-xine3' because of 'amarok-xine3'
281Selected version '2.0' (experimental [all]) for 'intermediatepkg' because of 'phonon-backend-xine3'
282Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-xine3'
283The following extra packages will be installed:
284 amarok-common (2.3.2-2+exp)
285 amarok-utils (2.3.2-2+exp)
286 amarok-xine3 (2.3.2-2+exp)
287 intermediatepkg (2.0)
288 libc6 (2.11.2-7+sid)
289 libmtp8 (0.3.1+sid)
290 phonon-backend-xine3 (4.6.0+exp)
291The following NEW packages will be installed:
292 amarok-common (2.3.2-2+exp)
293 amarok-utils (2.3.2-2+exp)
294 amarok-xine3 (2.3.2-2+exp)
295 intermediatepkg (2.0)
296 libc6 (2.11.2-7+sid)
297 libmtp8 (0.3.1+sid)
298 phonon-backend-xine3 (4.6.0+exp)
2990 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
300After this operation, 301 kB of additional disk space will be used.
301E: Trivial Only specified but this is not a trivial operation." aptget install amarok-xine3/experimental --trivial-only -V -q=0
302
303# … but proceed testing if the first doesn't work out even in second deep
304testequal "Reading package lists...
305Building dependency tree...
306Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-xine4'
307Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-xine4'
308Selected version '5:4.20.0+exp' (experimental [i386]) for 'phonon-backend-null' because of 'amarok-xine4'
309Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-xine4'
310The following extra packages will be installed:
311 amarok-common (2.3.2-2+exp)
312 amarok-utils (2.3.2-2+exp)
313 amarok-xine4 (2.3.2-2+exp)
314 libc6 (2.11.2-7+sid)
315 libmtp8 (0.3.1+sid)
316 phonon-backend-null (4.20.0+exp)
317The following NEW packages will be installed:
318 amarok-common (2.3.2-2+exp)
319 amarok-utils (2.3.2-2+exp)
320 amarok-xine4 (2.3.2-2+exp)
321 libc6 (2.11.2-7+sid)
322 libmtp8 (0.3.1+sid)
323 phonon-backend-null (4.20.0+exp)
3240 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
325After this operation, 258 kB of additional disk space will be used.
326E: Trivial Only specified but this is not a trivial operation." aptget install amarok-xine4/experimental --trivial-only -V -q=0
327
328# providers can be broken, too
329testequal "Reading package lists...
330Building dependency tree...
331Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-broken'
332Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-broken'
333Selected version '5:4.20.0+exp' (experimental [i386]) for 'phonon-backend-null' because of 'amarok-broken'
334Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-broken'
335The following extra packages will be installed:
336 amarok-broken (2.3.2-2+exp)
337 amarok-common (2.3.2-2+exp)
338 amarok-utils (2.3.2-2+exp)
339 libc6 (2.11.2-7+sid)
340 libmtp8 (0.3.1+sid)
341 phonon-backend-null (4.20.0+exp)
342The following NEW packages will be installed:
343 amarok-broken (2.3.2-2+exp)
344 amarok-common (2.3.2-2+exp)
345 amarok-utils (2.3.2-2+exp)
346 libc6 (2.11.2-7+sid)
347 libmtp8 (0.3.1+sid)
348 phonon-backend-null (4.20.0+exp)
3490 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
350After this operation, 258 kB of additional disk space will be used.
351E: Trivial Only specified but this is not a trivial operation." aptget install amarok-broken/experimental --trivial-only -V -q=0
352
353# switch the candidate for recommends too if they should be installed
354testequal "Reading package lists...
355Building dependency tree...
356Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-recommends'
357Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-recommends'
358Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-recommends'
359The following extra packages will be installed:
360 amarok-common (2.3.2-2+exp)
361 amarok-recommends (2.3.2-2+exp)
362 amarok-utils (2.3.2-2+exp)
363 libc6 (2.11.2-7+sid)
364 libmtp8 (0.3.1+sid)
365 phonon-backend-xine (4.6.0really4.4.2-1+sid)
366The following NEW packages will be installed:
367 amarok-common (2.3.2-2+exp)
368 amarok-recommends (2.3.2-2+exp)
369 amarok-utils (2.3.2-2+exp)
370 libc6 (2.11.2-7+sid)
371 libmtp8 (0.3.1+sid)
372 phonon-backend-xine (4.6.0really4.4.2-1+sid)
3730 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
374After this operation, 258 kB of additional disk space will be used.
375E: Trivial Only specified but this is not a trivial operation." aptget install amarok-recommends/experimental --trivial-only -V -q=0 -o APT::Install-Recommends=1
376
377# … or not if not
378testequal "Reading package lists...
379Building dependency tree...
380Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-recommends'
381Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-recommends'
382The following extra packages will be installed:
383 amarok-common (2.3.2-2+exp)
384 amarok-recommends (2.3.2-2+exp)
385Recommended packages:
386 amarok-utils (2.3.1-1+sid)
387 phonon-backend-xine (4.6.0really4.4.2-1+sid)
388 phonon-backend ()
389 libmtp8 (0.3.1+sid)
390 libc6 (2.11.2-7+sid)
391The following NEW packages will be installed:
392 amarok-common (2.3.2-2+exp)
393 amarok-recommends (2.3.2-2+exp)
3940 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
395After this operation, 86.0 kB of additional disk space will be used.
396E: Trivial Only specified but this is not a trivial operation." aptget install amarok-recommends/experimental --trivial-only -V -q=0 -o APT::Install-Recommends=0
397
398# but broken recommends are not the end of the world
399# FIXME: the version output for recommend packages is a bit strange… but what would be better?
400testequal "Reading package lists...
401Building dependency tree...
402Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-recommends2'
403Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-recommends2'
404The following extra packages will be installed:
405 amarok-common (2.3.2-2+exp)
406 amarok-recommends2 (2.3.2-2+exp)
407 libc6 (2.11.2-7+sid)
408 libmtp8 (0.3.1+sid)
409 phonon-backend-xine (4.6.0really4.4.2-1+sid)
410Recommended packages:
411 amarok-utils (2.3.1-1+sid)
412The following NEW packages will be installed:
413 amarok-common (2.3.2-2+exp)
414 amarok-recommends2 (2.3.2-2+exp)
415 libc6 (2.11.2-7+sid)
416 libmtp8 (0.3.1+sid)
417 phonon-backend-xine (4.6.0really4.4.2-1+sid)
4180 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
419After this operation, 215 kB of additional disk space will be used.
420E: Trivial Only specified but this is not a trivial operation." aptget install amarok-recommends2/experimental --trivial-only -V -q=0 -o APT::Install-Recommends=1
421
422# if one depends doesn't work, we don't need to look deeper…
423testequal "Reading package lists...
424Building dependency tree...
425Selected version '1.0' (experimental [all]) for 'uninstallablepkg'
426Some packages could not be installed. This may mean that you have
427requested an impossible situation or if you are using the unstable
428distribution that some required packages have not yet been created
429or been moved out of Incoming.
430The following information may help to resolve the situation:
431
432The following packages have unmet dependencies:
433 uninstallablepkg : Depends: libmtp8 (>= 10:0.20.1) but it is not going to be installed
434 Depends: amarok-utils (= 2.3.2-2+exp) but 2.3.1-1+sid is to be installed
435E: Broken packages" aptget install uninstallablepkg/experimental --trivial-only -V -q=0