]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-675449-essential-are-protected
Merge remote-tracking branch 'mvo/debian/sid' into debian/sid
[apt.git] / test / integration / test-bug-675449-essential-are-protected
CommitLineData
82c6f752
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'i386'
8
9insertinstalledpackage 'pkg-native' 'amd64' '1' 'Multi-Arch: foreign
10Essential: yes'
11insertinstalledpackage 'pkg-foreign' 'i386' '1' 'Multi-Arch: foreign
12Essential: yes'
13insertinstalledpackage 'pkg-none-native' 'amd64' '1' 'Essential: yes'
14insertinstalledpackage 'pkg-none-foreign' 'i386' '1' 'Essential: yes'
15
16insertpackage 'unstable' 'pkg-native' 'amd64,i386' '2' 'Multi-Arch: foreign
17Essential: yes'
18insertpackage 'unstable' 'pkg-foreign' 'amd64,i386' '2' 'Multi-Arch: foreign
19Depends: pkg-depends-new
20Essential: yes'
21insertpackage 'unstable' 'pkg-none-native' 'amd64,i386' '2' 'Essential: yes'
22insertpackage 'unstable' 'pkg-none-foreign' 'amd64,i386' '2' 'Essential: yes
23Depends: pkg-depends-new'
24
25insertpackage 'unstable' 'pkg-none-new' 'amd64,i386' '2' 'Essential: yes'
26insertpackage 'unstable' 'pkg-depends-new' 'amd64,i386' '2' 'Essential: yes'
27
28setupaptarchive
29
30testequal 'Reading package lists...
31Building dependency tree...
32The following packages will be REMOVED:
33 pkg-native*
34WARNING: The following essential packages will be removed.
35This should NOT be done unless you know exactly what you are doing!
36 pkg-native
370 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
38Purg pkg-native [1]' aptget purge pkg-native -s
39
40testequal 'Reading package lists...
41Building dependency tree...
42The following packages will be REMOVED:
43 pkg-foreign:i386*
44WARNING: The following essential packages will be removed.
45This should NOT be done unless you know exactly what you are doing!
46 pkg-foreign:i386
470 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
48Purg pkg-foreign:i386 [1]' aptget purge pkg-foreign:i386 -s
49
50testequal 'Reading package lists...
51Building dependency tree...
52The following packages will be REMOVED:
53 pkg-none-native*
54WARNING: The following essential packages will be removed.
55This should NOT be done unless you know exactly what you are doing!
56 pkg-none-native
570 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
58Purg pkg-none-native [1]' aptget purge pkg-none-native -s
59
60testequal 'Reading package lists...
61Building dependency tree...
62The following packages will be REMOVED:
63 pkg-none-foreign:i386*
64WARNING: The following essential packages will be removed.
65This should NOT be done unless you know exactly what you are doing!
66 pkg-none-foreign:i386
670 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
68Purg pkg-none-foreign:i386 [1]' aptget purge pkg-none-foreign:i386 -s
69
70testequal 'Reading package lists...
71Building dependency tree...
72The following NEW packages will be installed:
73 pkg-depends-new:i386 pkg-none-new
74The following packages will be upgraded:
75 pkg-foreign:i386 pkg-native pkg-none-foreign:i386 pkg-none-native
764 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
77Inst pkg-depends-new:i386 (2 unstable [i386])
78Conf pkg-depends-new:i386 (2 unstable [i386])
79Inst pkg-foreign:i386 [1] (2 unstable [i386])
80Conf pkg-foreign:i386 (2 unstable [i386])
81Inst pkg-native [1] (2 unstable [amd64])
82Conf pkg-native (2 unstable [amd64])
83Inst pkg-none-foreign:i386 [1] (2 unstable [i386])
84Conf pkg-none-foreign:i386 (2 unstable [i386])
85Inst pkg-none-native [1] (2 unstable [amd64])
86Conf pkg-none-native (2 unstable [amd64])
87Inst pkg-none-new (2 unstable [amd64])
88Conf pkg-none-new (2 unstable [amd64])' aptget dist-upgrade -s