summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-745036-new-foreign-invalidates-cache
blob: 490cbecdd94a34164926c70e040a384825901859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
set -e

TESTDIR=$(readlink -f $(dirname $0))
. $TESTDIR/framework
setupenvironment
configarchitecture 'amd64'

insertpackage 'unstable' 'cool-foo' 'amd64' '1.0' 'Depends: foo'
insertpackage 'unstable' 'foo' 'amd64' '1.0' 'Multi-Arch: foreign'
insertinstalledpackage 'cool-foo' 'amd64' '1.0' 'Depends: foo'
insertinstalledpackage 'foo' 'amd64' '1.0' 'Multi-Arch: foreign'

setupaptarchive

testsuccess aptget check -s

configarchitecture 'amd64' 'i386'
testequal '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