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