]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-796070-downgrade-realpkg
ensure outdated files are dropped without lists-cleanup
[apt.git] / test / integration / test-bug-796070-downgrade-realpkg
CommitLineData
9106d7c9
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
9106d7c9
DK
6
7setupenvironment
8configarchitecture 'i386'
9
10buildsimplenativepackage 'apt' 'all' '1.0.10.1' 'stable' 'Depends: libapt-pkg4.16 (>= 1.0.10.1)'
11buildsimplenativepackage 'libapt-pkg4.16' 'all' '1.0.10.1' 'stable' 'Breaks: apt (<< 0.9.4~), libapt-inst1.5 (<< 0.9.9~)'
12buildsimplenativepackage 'libapt-pkg5.0' 'all' '1.1~exp9' 'unstable' 'Breaks: apt (<< 1.1~exp4), libapt-inst1.5 (<< 0.9.9~)'
13buildsimplenativepackage 'apt' 'all' '1.1~exp9' 'unstable' 'Depends: libapt-pkg5.0'
14
15setupaptarchive
16
17# Check with the APT name, aka essential
18testsuccess aptget install apt -t stable -y
19testsuccess aptget dist-upgrade -y
20
21testsuccess aptget install apt/stable -y --allow-downgrades -o Debug::pkgPackageManager=1 #-o Debug::pkgDpkgPM=1
22testdpkginstalled apt libapt-pkg4.16
23testdpkgnotinstalled libapt-pkg5.0