merged from donkult
[ntk/apt.git] / test / integration / test-package-reinstallation
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture "i386"
8
9 insertinstalledpackage 'libc-bin' 'i386' '2.13-8' 'Replaces: libc6'
10 insertpackage 'unstable' 'libc-bin' 'i386' '2.13-8' 'Replaces: libc6'
11 insertinstalledpackage 'libc6' 'i386' '2.13-8' 'Depends: libc-bin (= 2.13-8)'
12 insertpackage 'unstable' 'libc6' 'i386' '2.13-8' 'Depends: libc-bin (= 2.13-8)'
13 insertinstalledpackage 'apt' 'i386' '0.8.15' 'Depends: libc6'
14
15 setupaptarchive
16
17 aptget install --reinstall libc6 libc-bin -s -o Debug::pkgPackageManager=1