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