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