fix progress output for (dist-)upgrade calculation
[ntk/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...
2a884c61 36Calculating upgrade...
446551c8
DK
37The following packages will be REMOVED:
38 lib32nss-mdns
39The following packages will be upgraded:
40 libnss-mdns
411 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
42Remv lib32nss-mdns [0.9-1]
43Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64])
44Conf libnss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s
45
46testequal 'Reading package lists...
47Building dependency tree...
48Some packages could not be installed. This may mean that you have
49requested an impossible situation or if you are using the unstable
50distribution that some required packages have not yet been created
51or been moved out of Incoming.
52The following information may help to resolve the situation:
53
54The following packages have unmet dependencies:
55 foo : Depends: libfoo but it is not going to be installed
56E: Unable to correct problems, you have held broken packages.' aptget install foo -s
57
58# activate multiarch
59configarchitecture 'amd64' 'i386'
60testsuccess aptget update
61
62testequal 'Reading package lists...
63Building dependency tree...
2a884c61 64Calculating upgrade...
446551c8
DK
65The following NEW packages will be installed:
66 libnss-mdns:i386 libnss-mdns-i386:i386
67The following packages will be upgraded:
68 lib32nss-mdns libnss-mdns
692 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
70Inst lib32nss-mdns [0.9-1] (0.10-6 unstable [amd64]) []
71Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64]) []
72Inst libnss-mdns:i386 (0.10-6 unstable [i386]) []
73Inst libnss-mdns-i386:i386 (0.10-6 unstable [i386])
74Conf libnss-mdns:i386 (0.10-6 unstable [i386])
75Conf libnss-mdns (0.10-6 unstable [amd64])
76Conf libnss-mdns-i386:i386 (0.10-6 unstable [i386])
77Conf lib32nss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s
78
79testequal 'Reading package lists...
80Building dependency tree...
81The following extra packages will be installed:
82 libfoo libfoo-bin:i386
83The following NEW packages will be installed:
84 foo libfoo libfoo-bin:i386
850 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
86Inst libfoo-bin:i386 (0.10-6 unstable [i386])
87Inst libfoo (1 unstable [amd64])
88Inst foo (1 unstable [amd64])
89Conf libfoo-bin:i386 (0.10-6 unstable [i386])
90Conf libfoo (1 unstable [amd64])
91Conf foo (1 unstable [amd64])' aptget install foo -s