always run 'dpkg --configure -a' at the end of our dpkg callings
[ntk/apt.git] / test / integration / test-package-reinstallation
CommitLineData
4e9ccfb2
CB
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
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
28f7a8f2
DK
17testequal 'Reading package lists...
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