]> git.saurik.com Git - apt.git/blame - test/integration/test-package-reinstallation
pass --force-remove-essential to dpkg only if needed
[apt.git] / test / integration / test-package-reinstallation
CommitLineData
4e9ccfb2
CB
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
4e9ccfb2
CB
6setupenvironment
7configarchitecture "i386"
8
9insertinstalledpackage 'libc-bin' 'i386' '2.13-8' 'Replaces: libc6'
10insertpackage 'unstable' 'libc-bin' 'i386' '2.13-8' 'Replaces: libc6'
11insertinstalledpackage 'libc6' 'i386' '2.13-8' 'Depends: libc-bin (= 2.13-8)'
12insertpackage 'unstable' 'libc6' 'i386' '2.13-8' 'Depends: libc-bin (= 2.13-8)'
13insertinstalledpackage 'apt' 'i386' '0.8.15' 'Depends: libc6'
14
15setupaptarchive
16
25b86db1 17testsuccessequal 'Reading package lists...
28f7a8f2
DK
18Building dependency tree...
190 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
20Inst libc-bin [2.13-8] (2.13-8 unstable [i386])
21Conf libc-bin (2.13-8 unstable [i386])
22Inst libc6 [2.13-8] (2.13-8 unstable [i386])
23Conf libc6 (2.13-8 unstable [i386])' aptget install --reinstall libc6 libc-bin -s