]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-747261-arch-specific-conflicts
Don't download "optional" files not in Release :/.
[apt.git] / test / integration / test-bug-747261-arch-specific-conflicts
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6setupenvironment
7configarchitecture 'amd64' 'sparc' 'armel'
8
9insertinstalledpackage 'foobar' 'armel' '1'
10msgtest 'Check that dpkg supports' 'arch-specific dependencies'
11if ! dpkgcheckbuilddeps -d 'foobar:armel' /dev/null 2>/dev/null >/dev/null; then
12 dpkgcheckbuilddeps -d 'foobar:armel' /dev/null || true
13 msgskip
14 exit 0
15else
16 msgpass
17fi
18
19buildsimplenativepackage 'libc6' 'amd64,sparc,armel' '1' 'stable' 'Multi-Arch: same'
20buildsimplenativepackage 'libc6-i386' 'amd64' '1' 'stable' 'Conflicts: libc6:sparc'
21
22setupaptarchive
23
24testsuccess aptget install 'libc6:amd64' 'libc6:sparc' -y
25testdpkginstalled 'libc6:amd64' 'libc6:sparc'
26testdpkgnotinstalled 'libc6-i386' 'libc6:armel'
27
28testsuccess aptget install libc6-i386 -y
29testdpkginstalled 'libc6:amd64' 'libc6-i386'
30testdpkgnotinstalled 'libc6:sparc' 'libc6:armel'
31
32testsuccess aptget install libc6:armel -y
33testdpkginstalled 'libc6:amd64' 'libc6:armel' 'libc6-i386'
34testdpkgnotinstalled 'libc6:sparc'
35
36testsuccess aptget install libc6:sparc -y
37testdpkginstalled 'libc6:amd64' 'libc6:armel' 'libc6:sparc'
38testdpkgnotinstalled 'libc6-i386'
39
40testsuccess aptget purge 'libc6:*' 'libc6-i386' -y
41testdpkgnotinstalled 'libc6:amd64' 'libc6:armel' 'libc6:sparc' 'libc6-i386'
42
43# check that (the actually simpler) single arch is fine, too
44configarchitecture 'amd64'
45testfailure aptget install libc6:sparc -s
46testsuccess aptget install libc6 libc6-i386 -y