]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-618848-always-respect-user-requests
pass --force-remove-essential to dpkg only if needed
[apt.git] / test / integration / test-bug-618848-always-respect-user-requests
CommitLineData
cc26da01
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
cc26da01
DK
6setupenvironment
7configarchitecture 'i386'
8
9insertinstalledpackage 'libdb4.8' 'all' '1.0'
10insertinstalledpackage 'exim4' 'all' '1.0' 'Depends: exim4-daemon-light | exim4-daemon-heavy'
11insertinstalledpackage 'exim4-daemon-light' 'all' '1.0' 'Depends: libdb4.8'
12insertpackage 'unstable' 'exim4-daemon-heavy' 'all' '1.0' 'Depends: libdb4.8'
13
14setupaptarchive
15
25b86db1 16testsuccessequal 'Reading package lists...
cc26da01 17Building dependency tree...
d622baee
DK
18 MarkDelete libdb4.8:i386 < 1.0 @ii pmK > FU=1
19 MarkDelete exim4-daemon-light:i386 < 1.0 @ii mK Ib > FU=0
20 MarkInstall exim4-daemon-heavy:i386 < none -> 1.0 @un uN Ib > FU=0
21 Ignore MarkInstall of libdb4.8:i386 < 1.0 @ii pmR > as its mode (Delete) is protected
22 MarkDelete exim4-daemon-heavy:i386 < none -> 1.0 @un uN Ib > FU=0
23 MarkDelete exim4:i386 < 1.0 @ii mK Ib > FU=0
cc26da01
DK
24The following packages will be REMOVED:
25 exim4 exim4-daemon-light libdb4.8
d622baee 26 MarkDelete exim4:i386 < 1.0 @ii K > FU=1
cc26da01
DK
270 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
28Remv exim4 [1.0]
d622baee 29 MarkDelete exim4-daemon-light:i386 < 1.0 @ii K > FU=1
cc26da01 30Remv exim4-daemon-light [1.0]
d622baee 31 MarkDelete libdb4.8:i386 < 1.0 @ii K > FU=1
cc26da01 32Remv libdb4.8 [1.0]' aptget remove libdb4.8 -s -o Debug::pkgDepCache::Marker=1