]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-745036-new-foreign-invalidates-cache
make test_unauthenticated_to_invalid_inrelease work
[apt.git] / test / integration / test-bug-745036-new-foreign-invalidates-cache
CommitLineData
7a223b93
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8
9insertpackage 'unstable' 'cool-foo' 'amd64' '1.0' 'Depends: foo'
10insertpackage 'unstable' 'foo' 'amd64' '1.0' 'Multi-Arch: foreign'
11insertinstalledpackage 'cool-foo' 'amd64' '1.0' 'Depends: foo'
12insertinstalledpackage 'foo' 'amd64' '1.0' 'Multi-Arch: foreign'
13
14setupaptarchive
15
16testsuccess aptget check -s
17
18configarchitecture 'amd64' 'i386'
19testequal 'E: The package cache was built for different architectures: amd64 vs amd64,i386' aptget check -s -o pkgCacheFile::Generate=false
20
21testsuccess aptget check -s
22
23insertinstalledpackage 'awesome-foo' 'i386' '1.0' 'Depends: foo'
24
25testsuccess aptget check -s
26
27testsuccess aptget update --no-download
28
29testsuccess aptget check -s