]> git.saurik.com Git - apt.git/blame - test/integration/test-ubuntu-bug-1130419-prefer-installed-ma-same-siblings
protect only the latest same-source providers from autoremove
[apt.git] / test / integration / test-ubuntu-bug-1130419-prefer-installed-ma-same-siblings
CommitLineData
9bfd7b57
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
9bfd7b57
DK
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
25b86db1 23testsuccessequal 'Reading package lists...
9bfd7b57 24Building dependency tree...
e7ebb414 25The following additional packages will be installed:
9bfd7b57
DK
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
25b86db1 34testsuccessequal 'Reading package lists...
9bfd7b57 35Building dependency tree...
e7ebb414 36The following additional packages will be installed:
9bfd7b57
DK
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'
25b86db1 48testsuccessequal 'Reading package lists...
9bfd7b57 49Building dependency tree...
e7ebb414 50The following additional packages will be installed:
9bfd7b57
DK
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
25b86db1 59testsuccessequal 'Reading package lists...
9bfd7b57 60Building dependency tree...
e7ebb414 61The following additional packages will be installed:
9bfd7b57
DK
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'
25b86db1 79testsuccessequal 'Reading package lists...
9bfd7b57 80Building dependency tree...
e7ebb414 81The following additional packages will be installed:
9bfd7b57
DK
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
25b86db1 90testsuccessequal 'Reading package lists...
9bfd7b57 91Building dependency tree...
e7ebb414 92The following additional packages will be installed:
9bfd7b57
DK
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