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