diff options
author | Julian Andres Klode <jak@debian.org> | 2023-12-08 13:13:22 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2023-12-08 13:13:22 +0000 |
commit | cc54a179c42e07cf61debd6740cb47542caccae5 (patch) | |
tree | 06733b897ab78e26b51ca5b6b578685783f5736a /test | |
parent | 0b1baa9da13128113da96d4bb47c567d7258fe05 (diff) | |
parent | 0abf584b283e3e0f040b9ec0e7153c6e52291b2a (diff) |
Merge branch 'fix/unknownarchconflicts' into 'main'
Have Grp.FindPreferredPkg return very foreign pkgs as last resort
See merge request apt-team/apt!310
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-dont-forget-conflicts-via-unknown-architectures | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/integration/test-dont-forget-conflicts-via-unknown-architectures b/test/integration/test-dont-forget-conflicts-via-unknown-architectures new file mode 100755 index 000000000..07d5d8f84 --- /dev/null +++ b/test/integration/test-dont-forget-conflicts-via-unknown-architectures @@ -0,0 +1,43 @@ +#!/bin/sh +set -e + +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" +setupenvironment +configarchitecture 'arm64' +configdpkgnoopchroot + +buildsimplenativepackage 'pkga' 'arm64' '1' 'stable' +buildsimplenativepackage 'pkgb' 'arm64' '1' 'stable' + +cd aptarchive +aptftparchive packages ../incoming > Packages +cd .. +generatereleasefiles +signreleasefiles +setupflataptarchive +testsuccess apt update + +testsuccess apt install pkga pkgb -y +testdpkginstalled 'pkga' 'pkgb' + +rm -rf aptarchive incoming + +buildsimplenativepackage 'pkga' 'arm64,amd64' '2' 'unstable' 'Provides: pkgb +Breaks: pkgb (<< 1+) +Replaces: pkgb (<< 1+)' + +mkdir aptarchive +cd aptarchive +aptftparchive packages ../incoming > Packages +cd .. +generatereleasefiles +signreleasefiles +setupflataptarchive +testsuccess apt update + +#apt upgrade pkga -o Debug::pkgDpkgPm=1 -y -o Dpkg::use-pty=0 +rm -f rootdir/var/cache/apt/*.bin +testsuccess apt upgrade pkga -y +testdpkginstalled 'pkga' +testdpkgnotinstalled 'pkgb' |