]> git.saurik.com Git - apt.git/blame - test/integration/test-unpack-different-version-unpacked
Fix conffile prompt regression (LP: #1260297)
[apt.git] / test / integration / test-unpack-different-version-unpacked
CommitLineData
d4b4e5ea
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'i386'
8
9insertpackage 'unstable' 'libqtcore4' 'i386,amd64' '2' 'Multi-Arch: same'
10setupaptarchive
11
12DPKGSTATUS='rootdir/var/lib/dpkg/status'
13cp $DPKGSTATUS dpkg.status
14
15cleanstatus() {
16 cp dpkg.status $DPKGSTATUS
17 rm rootdir/var/cache/apt/*.bin
18}
19
20#FIXME: the reported version is wrong, it should be 1, not 2
21insertinstalledpackage 'libqtcore4' 'i386,amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
22testequal 'Reading package lists...
23Building dependency tree...
240 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
252 not fully installed or removed.
26Conf libqtcore4 (2 unstable [amd64])
27Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f
28
29cleanstatus
30insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' '' 'install ok unpacked'
31insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' '' 'install ok unpacked'
32testequal 'Reading package lists...
33Building dependency tree...
34Correcting dependencies... Done
35The following extra packages will be installed:
36 libqtcore4:i386
37The following packages will be upgraded:
38 libqtcore4:i386
391 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
402 not fully installed or removed.
41Inst libqtcore4:i386 [1] (2 unstable [i386])
42Conf libqtcore4:i386 (2 unstable [i386])
43Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f
44
45cleanstatus
46insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' '' 'install ok unpacked'
47insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
48testequal 'Reading package lists...
49Building dependency tree...
50Correcting dependencies... Done
51The following extra packages will be installed:
52 libqtcore4
53The following packages will be upgraded:
54 libqtcore4
551 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
562 not fully installed or removed.
57Inst libqtcore4 [1] (2 unstable [amd64])
58Conf libqtcore4 (2 unstable [amd64])
59Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f
60
61cleanstatus
62insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' '' 'install ok unpacked'
63insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same'
64testequal 'Reading package lists...
65Building dependency tree...
66Correcting dependencies... Done
67The following extra packages will be installed:
68 libqtcore4:i386
69The following packages will be upgraded:
70 libqtcore4:i386
711 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
721 not fully installed or removed.
73Inst libqtcore4:i386 [1] (2 unstable [i386])
74Conf libqtcore4:i386 (2 unstable [i386])
75Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f
76
77cleanstatus
78insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' '' 'install ok unpacked'
79insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same'
80testequal 'Reading package lists...
81Building dependency tree...
82Correcting dependencies... Done
83The following extra packages will be installed:
84 libqtcore4
85The following packages will be upgraded:
86 libqtcore4
871 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
881 not fully installed or removed.
89Inst libqtcore4 [1] (2 unstable [amd64])
90Conf libqtcore4 (2 unstable [amd64])
91Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f
92
93cleanstatus
94insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same'
95insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' '' 'install ok unpacked'
96testequal 'Reading package lists...
97Building dependency tree...
98Correcting dependencies... Done
99The following extra packages will be installed:
100 libqtcore4:i386
101The following packages will be upgraded:
102 libqtcore4:i386
1031 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1041 not fully installed or removed.
105Inst libqtcore4:i386 [1] (2 unstable [i386])
106Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f
107
108cleanstatus
109insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same'
110insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
111testequal 'Reading package lists...
112Building dependency tree...
113Correcting dependencies... Done
114The following extra packages will be installed:
115 libqtcore4
116The following packages will be upgraded:
117 libqtcore4
1181 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1191 not fully installed or removed.
120Inst libqtcore4 [1] (2 unstable [amd64])
121Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f