]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-675449-essential-are-protected
Do not consider SHA1 usable
[apt.git] / test / integration / test-bug-675449-essential-are-protected
CommitLineData
82c6f752
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
82c6f752
DK
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
25b86db1 30testsuccessequal 'Reading package lists...
82c6f752
DK
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
25b86db1 40testsuccessequal 'Reading package lists...
82c6f752
DK
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
25b86db1 50testsuccessequal 'Reading package lists...
82c6f752
DK
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
25b86db1 60testsuccessequal 'Reading package lists...
82c6f752
DK
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
25b86db1 70testsuccessequal 'Reading package lists...
82c6f752 71Building dependency tree...
2a884c61 72Calculating upgrade...
82c6f752
DK
73The following NEW packages will be installed:
74 pkg-depends-new:i386 pkg-none-new
75The following packages will be upgraded:
76 pkg-foreign:i386 pkg-native pkg-none-foreign:i386 pkg-none-native
774 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
78Inst pkg-depends-new:i386 (2 unstable [i386])
79Conf pkg-depends-new:i386 (2 unstable [i386])
80Inst pkg-foreign:i386 [1] (2 unstable [i386])
81Conf pkg-foreign:i386 (2 unstable [i386])
82Inst pkg-native [1] (2 unstable [amd64])
83Conf pkg-native (2 unstable [amd64])
84Inst pkg-none-foreign:i386 [1] (2 unstable [i386])
85Conf pkg-none-foreign:i386 (2 unstable [i386])
86Inst pkg-none-native [1] (2 unstable [amd64])
87Conf pkg-none-native (2 unstable [amd64])
88Inst pkg-none-new (2 unstable [amd64])
89Conf pkg-none-new (2 unstable [amd64])' aptget dist-upgrade -s
a0c19a21
DK
90
91insertinstalledpackage 'foo' 'amd64' '1' 'Depends: libfoo
92Essential: yes'
93insertinstalledpackage 'libfoo' 'amd64' '1'
94testequal 'Reading package lists...
95Building dependency tree...
96The following packages will be REMOVED:
97 foo* libfoo*
98WARNING: The following essential packages will be removed.
99This should NOT be done unless you know exactly what you are doing!
100 foo libfoo (due to foo)
1010 upgraded, 0 newly installed, 2 to remove and 4 not upgraded.
102Purg foo [1]
103Purg libfoo [1]' aptget purge libfoo -s