]>
Commit | Line | Data |
---|---|---|
446551c8 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture 'i386' 'amd64' | |
9 | ||
10 | insertpackage 'unstable' 'lib32nss-mdns' 'amd64' '0.10-6' 'Depends: libnss-mdns-i386 (= 0.10-6)' | |
11 | insertpackage 'unstable' 'libnss-mdns' 'amd64,i386' '0.10-6' 'Multi-Arch: same | |
12 | Breaks: lib32nss-mdns (<< 0.10-6)' | |
13 | insertpackage 'unstable' 'libnss-mdns-i386' 'i386' '0.10-6' 'Multi-Arch: foreign | |
14 | Depends: libnss-mdns' | |
15 | ||
16 | insertpackage 'unstable' 'foo' 'amd64' '1' 'Depends: libfoo' | |
17 | insertpackage 'unstable' 'libfoo' 'amd64' '1' 'Depends: libfoo-bin' | |
18 | insertpackage 'unstable' 'libfoo-bin' 'i386' '0.10-6' 'Multi-Arch: foreign' | |
19 | ||
20 | insertinstalledpackage 'lib32nss-mdns' 'amd64' '0.9-1' | |
21 | insertinstalledpackage 'libnss-mdns' 'amd64' '0.9-1' | |
22 | ||
23 | insertinstalledpackage 'i-make-packages-important' 'all' '1' 'Depends: libnss-mdns' | |
24 | ||
25 | setupaptarchive --no-update | |
26 | ||
27 | # make libnss-mdns-i386 unavailable | |
28 | configarchitecture 'amd64' | |
29 | testsuccess aptget update | |
30 | ||
31 | testequal 'Reading package lists... | |
32 | Building dependency tree... | |
33 | The following packages will be REMOVED: | |
34 | lib32nss-mdns | |
35 | The following packages will be upgraded: | |
36 | libnss-mdns | |
37 | 1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. | |
38 | Remv lib32nss-mdns [0.9-1] | |
39 | Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64]) | |
40 | Conf libnss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s | |
41 | ||
42 | testequal 'Reading package lists... | |
43 | Building dependency tree... | |
44 | Some packages could not be installed. This may mean that you have | |
45 | requested an impossible situation or if you are using the unstable | |
46 | distribution that some required packages have not yet been created | |
47 | or been moved out of Incoming. | |
48 | The following information may help to resolve the situation: | |
49 | ||
50 | The following packages have unmet dependencies: | |
51 | foo : Depends: libfoo but it is not going to be installed | |
52 | E: Unable to correct problems, you have held broken packages.' aptget install foo -s | |
53 | ||
54 | # activate multiarch | |
55 | configarchitecture 'amd64' 'i386' | |
56 | testsuccess aptget update | |
57 | ||
58 | testequal 'Reading package lists... | |
59 | Building dependency tree... | |
60 | The following NEW packages will be installed: | |
61 | libnss-mdns:i386 libnss-mdns-i386:i386 | |
62 | The following packages will be upgraded: | |
63 | lib32nss-mdns libnss-mdns | |
64 | 2 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
65 | Inst lib32nss-mdns [0.9-1] (0.10-6 unstable [amd64]) [] | |
66 | Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64]) [] | |
67 | Inst libnss-mdns:i386 (0.10-6 unstable [i386]) [] | |
68 | Inst libnss-mdns-i386:i386 (0.10-6 unstable [i386]) | |
69 | Conf libnss-mdns:i386 (0.10-6 unstable [i386]) | |
70 | Conf libnss-mdns (0.10-6 unstable [amd64]) | |
71 | Conf libnss-mdns-i386:i386 (0.10-6 unstable [i386]) | |
72 | Conf lib32nss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s | |
73 | ||
74 | testequal 'Reading package lists... | |
75 | Building dependency tree... | |
76 | The following extra packages will be installed: | |
77 | libfoo libfoo-bin:i386 | |
78 | The following NEW packages will be installed: | |
79 | foo libfoo libfoo-bin:i386 | |
80 | 0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded. | |
81 | Inst libfoo-bin:i386 (0.10-6 unstable [i386]) | |
82 | Inst libfoo (1 unstable [amd64]) | |
83 | Inst foo (1 unstable [amd64]) | |
84 | Conf libfoo-bin:i386 (0.10-6 unstable [i386]) | |
85 | Conf libfoo (1 unstable [amd64]) | |
86 | Conf foo (1 unstable [amd64])' aptget install foo -s |