]> git.saurik.com Git - apt.git/blame - test/integration/test-ubuntu-bug-1130419-prefer-installed-ma-same-siblings
prevent MarkInstall of unsynced Multi-Arch:same siblings
[apt.git] / test / integration / test-ubuntu-bug-1130419-prefer-installed-ma-same-siblings
CommitLineData
9bfd7b57
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'i386'
8
9insertpackage 'stable' 'libmesa' 'amd64,i386' '1' 'Multi-Arch: same'
10insertpackage 'stable' 'libmesa-lts' 'amd64,i386' '1' 'Provides: libmesa
11Conflicts: libmesa
12Multi-Arch: same'
13insertpackage 'stable' 'steam' 'i386' '1' 'Depends: libmesa'
14
15insertpackage 'unstable' 'libmesa' 'amd64,i386' '2' 'Multi-Arch: same'
16insertpackage 'unstable' 'libmesa-lts' 'amd64,i386' '2' 'Provides: libmesa
17Conflicts: libmesa
18Multi-Arch: same'
19insertpackage 'unstable' 'steam' 'i386' '2' 'Depends: libmesa'
20
21setupaptarchive
22
23testequal 'Reading package lists...
24Building dependency tree...
25The following extra packages will be installed:
26 libmesa:i386
27The following NEW packages will be installed:
28 libmesa:i386 steam:i386
290 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
30Inst libmesa:i386 (1 stable [i386])
31Inst steam:i386 (1 stable [i386])
32Conf libmesa:i386 (1 stable [i386])
33Conf steam:i386 (1 stable [i386])' aptget install steam -st stable
34testequal 'Reading package lists...
35Building dependency tree...
36The following extra packages will be installed:
37 libmesa:i386
38The following NEW packages will be installed:
39 libmesa:i386 steam:i386
400 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
41Inst libmesa:i386 (2 unstable [i386])
42Inst steam:i386 (2 unstable [i386])
43Conf libmesa:i386 (2 unstable [i386])
44Conf steam:i386 (2 unstable [i386])' aptget install steam -st unstable
45
46cp rootdir/var/lib/dpkg/status default-status.dpkg
47insertinstalledpackage 'libmesa' 'amd64' '1' 'Multi-Arch: same'
48testequal 'Reading package lists...
49Building dependency tree...
50The following extra packages will be installed:
51 libmesa:i386
52The following NEW packages will be installed:
53 libmesa:i386 steam:i386
540 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
55Inst libmesa:i386 (1 stable [i386])
56Inst steam:i386 (1 stable [i386])
57Conf libmesa:i386 (1 stable [i386])
58Conf steam:i386 (1 stable [i386])' aptget install steam -st stable
59testequal 'Reading package lists...
60Building dependency tree...
61The following extra packages will be installed:
62 libmesa libmesa:i386
63The following NEW packages will be installed:
64 libmesa:i386 steam:i386
65The following packages will be upgraded:
66 libmesa
671 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
68Inst libmesa [1] (2 unstable [amd64])
69Inst libmesa:i386 (2 unstable [i386])
70Inst steam:i386 (2 unstable [i386])
71Conf libmesa (2 unstable [amd64])
72Conf libmesa:i386 (2 unstable [i386])
73Conf steam:i386 (2 unstable [i386])' aptget install steam -st unstable
74
75cp default-status.dpkg rootdir/var/lib/dpkg/status
76insertinstalledpackage 'libmesa-lts' 'amd64' '1' 'Provides: libmesa
77Conflicts: libmesa
78Multi-Arch: same'
79testequal 'Reading package lists...
80Building dependency tree...
81The following extra packages will be installed:
82 libmesa-lts:i386
83The following NEW packages will be installed:
84 libmesa-lts:i386 steam:i386
850 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
86Inst libmesa-lts:i386 (1 stable [i386])
87Inst steam:i386 (1 stable [i386])
88Conf libmesa-lts:i386 (1 stable [i386])
89Conf steam:i386 (1 stable [i386])' aptget install steam -st stable
90testequal 'Reading package lists...
91Building dependency tree...
92The following extra packages will be installed:
93 libmesa-lts libmesa-lts:i386
94The following NEW packages will be installed:
95 libmesa-lts:i386 steam:i386
96The following packages will be upgraded:
97 libmesa-lts
981 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
99Inst libmesa-lts [1] (2 unstable [amd64])
100Inst libmesa-lts:i386 (2 unstable [i386])
101Inst steam:i386 (2 unstable [i386])
102Conf libmesa-lts (2 unstable [amd64])
103Conf libmesa-lts:i386 (2 unstable [i386])
104Conf steam:i386 (2 unstable [i386])' aptget install steam -st unstable