]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-767891-force-essential-important
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64' 'i386'
9 insertinstalledpackage 'apt' 'amd64' '1'
10 insertinstalledpackage 'foo' 'amd64,i386' '1' 'Multi-Arch: same'
11 insertinstalledpackage 'bar' 'amd64' '1' 'Provides: foo'
13 insertpackage 'unstable' 'foo2' 'amd64,i386' '1' 'Multi-Arch: same'
17 rm -f rootdir/var/cache/apt/*.bin
18 testsuccessequal 'Reading package lists...
19 Building dependency tree...
20 The following packages will be REMOVED:
21 apt* bar* foo* foo:i386*
22 WARNING: The following essential packages will be removed.
23 This should NOT be done unless you know exactly what you are doing!
25 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
29 Purg foo:i386 [1]' apt purge apt foo foo:i386 bar -s
31 rm -f rootdir/var/cache/apt/*.bin
32 testsuccessequal 'Reading package lists...
33 Building dependency tree...
34 The following packages will be REMOVED:
35 apt* bar* foo* foo:i386*
36 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
40 Purg foo:i386 [1]' apt purge apt foo foo:i386 bar -s -o pkgCacheGen::ForceEssential=''
42 msgmsg 'foo:i386 got the Important flag'
43 rm -f rootdir/var/cache/apt/*.bin
44 testsuccessequal 'Reading package lists...
45 Building dependency tree...
46 The following packages will be REMOVED:
47 apt* bar* foo* foo:i386*
48 WARNING: The following essential packages will be removed.
49 This should NOT be done unless you know exactly what you are doing!
51 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
55 Purg foo:i386 [1]' apt purge apt foo foo:i386 bar -s -o pkgCacheGen::ForceEssential='foo'
57 rm -f rootdir/var/cache/apt/*.bin
58 testsuccessequal 'Reading package lists...
59 Building dependency tree...
60 The following packages will be REMOVED:
61 apt* bar* foo* foo:i386*
62 WARNING: The following essential packages will be removed.
63 This should NOT be done unless you know exactly what you are doing!
65 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
69 Purg foo:i386 [1]' apt purge apt foo foo:i386 bar -s -o pkgCacheGen::ForceEssential::='foo'
71 msgmsg 'essentials only from native'
72 rm -f rootdir/var/cache/apt/*.bin
73 testsuccessequal 'Reading package lists...
74 Building dependency tree...
75 Calculating upgrade...
76 The following NEW packages will be installed:
78 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
79 Inst foo2 (1 unstable [amd64])
80 Conf foo2 (1 unstable [amd64])' apt full-upgrade -s -o pkgCacheGen::ForceEssential::='foo2'
82 msgmsg 'important only effects installed'
83 rm -f rootdir/var/cache/apt/*.bin
84 testsuccessequal 'Reading package lists...
85 Building dependency tree...
86 The following packages will be REMOVED:
87 apt* bar* foo* foo:i386*
88 WARNING: The following essential packages will be removed.
89 This should NOT be done unless you know exactly what you are doing!
91 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
95 Purg foo:i386 [1]' apt purge apt foo foo:i386 bar -s -o pkgCacheGen::ForceImportant::='foo'
96 rm -f rootdir/var/cache/apt/*.bin
97 testsuccessequal 'Reading package lists...
98 Building dependency tree...
99 Calculating upgrade...
100 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' apt full-upgrade -s -o pkgCacheGen::ForceImportant::='foo2'