1
0
Fork 0
apt/test/integration/test-bug-745036-new-foreign-invalidates-cache
Daniel Baumann 1af95933dd
Adding upstream version 3.0.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-30 17:53:03 +02:00

27 lines
703 B
Bash
Executable file

#!/bin/sh
set -e
TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'amd64'
insertpackage 'unstable,installed' 'cool-foo' 'amd64' '1.0' 'Depends: foo'
insertpackage 'unstable,installed' 'foo' 'amd64' '1.0' 'Multi-Arch: foreign'
setupaptarchive
testsuccess aptget check -s
configarchitecture 'amd64' 'i386'
testfailureequal 'E: The package cache was built for different architectures: amd64 vs amd64,i386' aptget check -s -o pkgCacheFile::Generate=false
testsuccess aptget check -s
insertinstalledpackage 'awesome-foo' 'i386' '1.0' 'Depends: foo'
testsuccess aptget check -s
testsuccess aptget update --no-download
testsuccess aptget check -s