]> git.saurik.com Git - apt.git/blame - test/integration/test-release-candidate-switching
eipp: add Allow-Temporary-Remove-of-Essentials
[apt.git] / test / integration / test-release-candidate-switching
CommitLineData
2c085486
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
2c085486
DK
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)'
2c085486
DK
42insertpackage '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)'
43insertpackage '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)'
44insertpackage '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)'
45insertpackage '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)'
46insertpackage '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
48insertpackage 'experimental' 'amarok-recommends' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp)
49Recommends: amarok-utils (= 2.3.2-2+exp), phonon-backend-xine | phonon-backend, libmtp8 (>= 0.3.1), libc6'
50insertpackage 'experimental' 'amarok-recommends2' 'i386' '2.3.2-2+exp' 'Depends: amarok-common (= 2.3.2-2+exp)
51Recommends: amarok-utils (= 2.30.2-2+exp), phonon-backend-xine | phonon-backend, libmtp8 (>= 0.3.1), libc6'
52
53insertpackage 'experimental' 'uninstallablepkg' 'all' '1.0' 'Depends: libmtp8 (>= 10:0.20.1), amarok-utils (= 2.3.2-2+exp)'
54
55setupaptarchive
56
25b86db1 57testfailureequal "Reading package lists...
2c085486 58Building dependency tree...
e7ebb414 59The following additional packages will be installed:
2c085486
DK
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)
a38cec81 64 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
65The 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)
a38cec81 71 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
720 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
73After this operation, 258 kB of additional disk space will be used.
87d6947d 74E: Trivial Only specified but this is not a trivial operation." aptget install amarok --trivial-only -V
2c085486 75
25b86db1 76testfailureequal "Reading package lists...
2c085486 77Building dependency tree...
e7ebb414 78The following additional packages will be installed:
2c085486
DK
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)
a38cec81 83 phonon-backend-xine (5:4.6.0+exp)
2c085486
DK
84The 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)
a38cec81 90 phonon-backend-xine (5:4.6.0+exp)
2c085486
DK
910 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
92After this operation, 258 kB of additional disk space will be used.
87d6947d 93E: Trivial Only specified but this is not a trivial operation." aptget install amarok -t experimental --trivial-only -V
2c085486 94
25b86db1 95testfailureequal "Reading package lists...
2c085486
DK
96Building dependency tree...
97Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok'
ca238ede 98Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok'
2c085486 99Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok'
e7ebb414 100The following additional packages will be installed:
2c085486
DK
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)
a38cec81 105 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
106The 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)
a38cec81 112 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
1130 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
114After this operation, 258 kB of additional disk space will be used.
87d6947d 115E: Trivial Only specified but this is not a trivial operation." aptget install amarok/experimental --trivial-only -V
2c085486 116
25b86db1 117testfailureequal "Reading package lists...
2c085486
DK
118Building dependency tree...
119Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-null'
ca238ede 120Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-null'
2c085486 121Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-null'
e7ebb414 122The following additional packages will be installed:
2c085486 123 amarok-common (2.3.2-2+exp)
2c085486
DK
124 amarok-utils (2.3.2-2+exp)
125 libc6 (2.11.2-7+sid)
126 libmtp8 (0.3.1+sid)
a38cec81 127 phonon-backend-null (4:4.20.0+sid)
2c085486
DK
128The 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)
a38cec81 134 phonon-backend-null (4:4.20.0+sid)
2c085486
DK
1350 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
136After this operation, 258 kB of additional disk space will be used.
87d6947d 137E: Trivial Only specified but this is not a trivial operation." aptget install amarok-null/experimental --trivial-only -V
2c085486
DK
138
139# do not select the same version multiple times
25b86db1 140testfailureequal "Reading package lists...
2c085486
DK
141Building dependency tree...
142Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok'
ca238ede 143Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok'
2c085486
DK
144Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok'
145Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-null'
e7ebb414 146The following additional packages will be installed:
2c085486 147 amarok-common (2.3.2-2+exp)
2c085486
DK
148 amarok-utils (2.3.2-2+exp)
149 libc6 (2.11.2-7+sid)
150 libmtp8 (0.3.1+sid)
a38cec81 151 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
152The 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)
a38cec81 159 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
1600 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
161After this operation, 301 kB of additional disk space will be used.
87d6947d 162E: Trivial Only specified but this is not a trivial operation." aptget install amarok/experimental amarok-null/experimental --trivial-only -V
2c085486
DK
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…
25b86db1 168testfailureequal "Reading package lists...
2c085486
DK
169Building dependency tree...
170Selected version '2.3.2-2+exp' (experimental2 [i386]) for 'amarok-less'
171Selected version '5:4.6.0+exp' (experimental [i386]) for 'phonon-backend-xine' because of 'amarok-less'
172Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-higher'
ca238ede 173Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-higher'
2c085486
DK
174Selected version '5:4.6.0+exp' (experimental [i386]) for 'phonon-backend-xine' because of 'amarok-higher'
175Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-higher'
e7ebb414 176The following additional packages will be installed:
2c085486 177 amarok-common (2.3.2-2+exp)
2c085486
DK
178 amarok-utils (2.3.2-2+exp)
179 libc6 (2.11.2-7+sid)
180 libmtp8 (0.3.1+sid)
a38cec81 181 phonon-backend-xine (5:4.6.0+exp)
2c085486
DK
182The 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)
a38cec81 189 phonon-backend-xine (5:4.6.0+exp)
2c085486
DK
1900 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
191After this operation, 301 kB of additional disk space will be used.
87d6947d 192E: Trivial Only specified but this is not a trivial operation." aptget install amarok-less/experimental2 amarok-higher/experimental --trivial-only -V
2c085486
DK
193
194# phonon-backend-null can't be used directly, but as it provides it is still fine…
25b86db1 195testfailureequal "Reading package lists...
2c085486
DK
196Building dependency tree...
197Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-null2'
ca238ede 198Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-null2'
2c085486 199Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-null2'
e7ebb414 200The following additional packages will be installed:
2c085486 201 amarok-common (2.3.2-2+exp)
2c085486
DK
202 amarok-utils (2.3.2-2+exp)
203 libc6 (2.11.2-7+sid)
204 libmtp8 (0.3.1+sid)
a38cec81 205 phonon-backend-null (4:4.20.0+sid)
2c085486
DK
206The 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)
a38cec81 212 phonon-backend-null (4:4.20.0+sid)
2c085486
DK
2130 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
214After this operation, 258 kB of additional disk space will be used.
87d6947d 215E: Trivial Only specified but this is not a trivial operation." aptget install amarok-null2/experimental --trivial-only -V
2c085486
DK
216
217# if an or-group satisfier is already found, do not set others
25b86db1 218testfailureequal "Reading package lists...
2c085486
DK
219Building dependency tree...
220Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-xine'
ca238ede 221Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-xine'
2c085486
DK
222Selected version '5:4.6.0+exp' (experimental [i386]) for 'phonon-backend-xine' because of 'amarok-xine'
223Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-xine'
e7ebb414 224The following additional packages will be installed:
2c085486
DK
225 amarok-common (2.3.2-2+exp)
226 amarok-utils (2.3.2-2+exp)
2c085486
DK
227 libc6 (2.11.2-7+sid)
228 libmtp8 (0.3.1+sid)
a38cec81 229 phonon-backend-xine (5:4.6.0+exp)
2c085486
DK
230The 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)
a38cec81 236 phonon-backend-xine (5:4.6.0+exp)
2c085486
DK
2370 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
238After this operation, 258 kB of additional disk space will be used.
87d6947d 239E: Trivial Only specified but this is not a trivial operation." aptget install amarok-xine/experimental --trivial-only -V
2c085486
DK
240
241# … but proceed testing if the first doesn't work out
25b86db1 242testfailureequal "Reading package lists...
2c085486
DK
243Building dependency tree...
244Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-xine2'
ca238ede 245Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-xine2'
2c085486
DK
246Selected version '5:4.20.0+exp' (experimental [i386]) for 'phonon-backend-null' because of 'amarok-xine2'
247Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-xine2'
e7ebb414 248The following additional packages will be installed:
2c085486
DK
249 amarok-common (2.3.2-2+exp)
250 amarok-utils (2.3.2-2+exp)
2c085486
DK
251 libc6 (2.11.2-7+sid)
252 libmtp8 (0.3.1+sid)
a38cec81 253 phonon-backend-null (5:4.20.0+exp)
2c085486
DK
254The 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)
a38cec81 260 phonon-backend-null (5:4.20.0+exp)
2c085486
DK
2610 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
262After this operation, 258 kB of additional disk space will be used.
87d6947d 263E: Trivial Only specified but this is not a trivial operation." aptget install amarok-xine2/experimental --trivial-only -V
2c085486
DK
264
265# sometimes, the second level need to be corrected, too
25b86db1 266testfailureequal "Reading package lists...
2c085486
DK
267Building dependency tree...
268Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-xine3'
ca238ede 269Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-xine3'
2c085486 270Selected version '5:4.6.0+exp' (experimental [i386]) for 'phonon-backend-xine3' because of 'amarok-xine3'
ca238ede 271Selected version '2.0' (experimental [all]) for 'intermediatepkg' because of 'phonon-backend-xine3'
2c085486 272Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-xine3'
e7ebb414 273The following additional packages will be installed:
2c085486
DK
274 amarok-common (2.3.2-2+exp)
275 amarok-utils (2.3.2-2+exp)
2c085486
DK
276 intermediatepkg (2.0)
277 libc6 (2.11.2-7+sid)
278 libmtp8 (0.3.1+sid)
a38cec81 279 phonon-backend-xine3 (5:4.6.0+exp)
2c085486
DK
280The 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)
a38cec81 287 phonon-backend-xine3 (5:4.6.0+exp)
2c085486
DK
2880 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
289After this operation, 301 kB of additional disk space will be used.
87d6947d 290E: Trivial Only specified but this is not a trivial operation." aptget install amarok-xine3/experimental --trivial-only -V
2c085486
DK
291
292# … but proceed testing if the first doesn't work out even in second deep
25b86db1 293testfailureequal "Reading package lists...
2c085486
DK
294Building dependency tree...
295Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-xine4'
ca238ede 296Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-xine4'
2c085486
DK
297Selected version '5:4.20.0+exp' (experimental [i386]) for 'phonon-backend-null' because of 'amarok-xine4'
298Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-xine4'
e7ebb414 299The following additional packages will be installed:
2c085486
DK
300 amarok-common (2.3.2-2+exp)
301 amarok-utils (2.3.2-2+exp)
2c085486
DK
302 libc6 (2.11.2-7+sid)
303 libmtp8 (0.3.1+sid)
a38cec81 304 phonon-backend-null (5:4.20.0+exp)
2c085486
DK
305The 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)
a38cec81 311 phonon-backend-null (5:4.20.0+exp)
2c085486
DK
3120 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
313After this operation, 258 kB of additional disk space will be used.
87d6947d 314E: Trivial Only specified but this is not a trivial operation." aptget install amarok-xine4/experimental --trivial-only -V
2c085486
DK
315
316# providers can be broken, too
25b86db1 317testfailureequal "Reading package lists...
2c085486
DK
318Building dependency tree...
319Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-broken'
ca238ede 320Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-broken'
2c085486
DK
321Selected version '5:4.20.0+exp' (experimental [i386]) for 'phonon-backend-null' because of 'amarok-broken'
322Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-broken'
e7ebb414 323The following additional packages will be installed:
2c085486
DK
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)
a38cec81 328 phonon-backend-null (5:4.20.0+exp)
2c085486
DK
329The 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)
a38cec81 335 phonon-backend-null (5:4.20.0+exp)
2c085486
DK
3360 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
337After this operation, 258 kB of additional disk space will be used.
87d6947d 338E: Trivial Only specified but this is not a trivial operation." aptget install amarok-broken/experimental --trivial-only -V
2c085486
DK
339
340# switch the candidate for recommends too if they should be installed
25b86db1 341testfailureequal "Reading package lists...
2c085486
DK
342Building dependency tree...
343Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-recommends'
ca238ede 344Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-recommends'
2c085486 345Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-recommends'
e7ebb414 346The following additional packages will be installed:
2c085486 347 amarok-common (2.3.2-2+exp)
2c085486
DK
348 amarok-utils (2.3.2-2+exp)
349 libc6 (2.11.2-7+sid)
350 libmtp8 (0.3.1+sid)
a38cec81 351 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
352The 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)
a38cec81 358 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
3590 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
360After this operation, 258 kB of additional disk space will be used.
87d6947d 361E: Trivial Only specified but this is not a trivial operation." aptget install amarok-recommends/experimental --trivial-only -V -o APT::Install-Recommends=1
2c085486
DK
362
363# … or not if not
25b86db1 364testfailureequal "Reading package lists...
2c085486
DK
365Building dependency tree...
366Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-recommends'
ca238ede 367Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-recommends'
e7ebb414 368The following additional packages will be installed:
2c085486 369 amarok-common (2.3.2-2+exp)
2c085486
DK
370Recommended packages:
371 amarok-utils (2.3.1-1+sid)
a38cec81 372 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
9112f777 373 | phonon-backend
2c085486
DK
374 libmtp8 (0.3.1+sid)
375 libc6 (2.11.2-7+sid)
376The following NEW packages will be installed:
377 amarok-common (2.3.2-2+exp)
378 amarok-recommends (2.3.2-2+exp)
3790 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
380After this operation, 86.0 kB of additional disk space will be used.
87d6947d 381E: Trivial Only specified but this is not a trivial operation." aptget install amarok-recommends/experimental --trivial-only -V -o APT::Install-Recommends=0
2c085486
DK
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?
25b86db1 385testfailureequal "Reading package lists...
2c085486
DK
386Building dependency tree...
387Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-recommends2'
ca238ede 388Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-recommends2'
e7ebb414 389The following additional packages will be installed:
2c085486 390 amarok-common (2.3.2-2+exp)
2c085486
DK
391 libc6 (2.11.2-7+sid)
392 libmtp8 (0.3.1+sid)
a38cec81 393 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
394Recommended packages:
395 amarok-utils (2.3.1-1+sid)
396The 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)
a38cec81 401 phonon-backend-xine (4:4.6.0really4.4.2-1+sid)
2c085486
DK
4020 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
403After this operation, 215 kB of additional disk space will be used.
87d6947d 404E: Trivial Only specified but this is not a trivial operation." aptget install amarok-recommends2/experimental --trivial-only -V -o APT::Install-Recommends=1
2c085486
DK
405
406# if one depends doesn't work, we don't need to look deeper…
25b86db1 407testfailureequal "Reading package lists...
2c085486 408Building dependency tree...
ca238ede 409Selected version '1.0' (experimental [all]) for 'uninstallablepkg'
2c085486
DK
410Some packages could not be installed. This may mean that you have
411requested an impossible situation or if you are using the unstable
412distribution that some required packages have not yet been created
413or been moved out of Incoming.
414The following information may help to resolve the situation:
415
416The 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
87d6947d 419E: Unable to correct problems, you have held broken packages." aptget install uninstallablepkg/experimental --trivial-only -V