]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-590041-prefer-non-virtual-packages
Merge remote-tracking branch 'donkult/debian/sid' into debian/sid
[apt.git] / test / integration / test-bug-590041-prefer-non-virtual-packages
1 #!/bin/sh
2 set -e
3
4 . $(readlink -f $(dirname $0))/framework
5 setupenvironment
6 configarchitecture 'i386' 'armel'
7
8 pkglibc6="Package: libc6
9 Architecture: armel
10 Version: 2.11.2-2~0.3
11 Description: Embedded GNU C Library: Shared libraries
12 Description-md5: b8c1e0561b75e2dc6b6482a99079c3e4
13 Filename: pool/main/e/eglibc/libc6_2.11.2-2_armel.deb
14 Installed-Size: 9740
15 MD5sum: f5b878ce5fb8aa01a7927fa1460df537
16 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
17 Priority: required
18 SHA1: 0464d597dfbf949e8c17a42325b1f93fb4914afd
19 SHA256: faca4a3d9ccff57568abf41f6cb81ddd835be7b5d8b0161e2d5f9a7f26aae3c0
20 Section: libs
21 Size: 4178958
22 "
23
24 pkglibdb1="Package: libdb1
25 Architecture: i386
26 Version: 2.1.3-13~0.3
27 Replaces: libc6 (<< 2.2.5-13~0.3)
28 Description: The Berkeley database routines [glibc 2.0/2.1 compatibility]
29 Description-md5: de1876f7fe7f7709a110875e145e38a8
30 Filename: pool/main/d/db1-compat/libdb1-compat_2.1.3-13_armel.deb
31 Installed-Size: 136
32 MD5sum: 4043f176ab2b40b0c01bc1211b8c103c
33 Maintainer: Colin Watson <cjwatson@debian.org>
34 Priority: extra
35 SHA1: b9396fdd2e3e8d1d4ba9e74e7346075852d85666
36 SHA256: f17decaa28d1db3eeb9eb17bebe50d437d293a509bcdd7cdfd3ebb56f5de3cea
37 Section: oldlibs
38 Size: 44168
39 "
40
41 cat <<-EOF >aptarchive/Packages
42 $pkglibc6
43 $pkglibdb1
44 EOF
45
46 setupaptarchive
47
48 testshowvirtual libc6:i386
49 testequal "$pkglibc6" aptcache show libc6:armel
50 testequal "$pkglibc6" aptcache show libc6
51 testequal "$pkglibdb1" aptcache show libdb1:i386
52 testnopackage libdb1:armel
53 testequal "$pkglibdb1" aptcache show libdb1