]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-590041-prefer-non-virtual-packages
- prefer non-virtual packages in FindPreferredPkg (Closes: #590041)
[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 Filename: pool/main/e/eglibc/libc6_2.11.2-2_armel.deb
13 Installed-Size: 9740
14 MD5sum: f5b878ce5fb8aa01a7927fa1460df537
15 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
16 Priority: required
17 SHA1: 0464d597dfbf949e8c17a42325b1f93fb4914afd
18 SHA256: faca4a3d9ccff57568abf41f6cb81ddd835be7b5d8b0161e2d5f9a7f26aae3c0
19 Section: libs
20 Size: 4178958
21 "
22
23 pkglibdb1="Package: libdb1
24 Architecture: i386
25 Version: 2.1.3-13~0.3
26 Replaces: libc6 (<< 2.2.5-13~0.3)
27 Description: The Berkeley database routines [glibc 2.0/2.1 compatibility]
28 Filename: pool/main/d/db1-compat/libdb1-compat_2.1.3-13_armel.deb
29 Installed-Size: 136
30 MD5sum: 4043f176ab2b40b0c01bc1211b8c103c
31 Maintainer: Colin Watson <cjwatson@debian.org>
32 Priority: extra
33 SHA1: b9396fdd2e3e8d1d4ba9e74e7346075852d85666
34 SHA256: f17decaa28d1db3eeb9eb17bebe50d437d293a509bcdd7cdfd3ebb56f5de3cea
35 Section: oldlibs
36 Size: 44168
37 "
38
39 cat <<-EOF >aptarchive/Packages
40 $pkglibc6
41 $pkglibdb1
42 EOF
43
44 setupflataptarchive
45
46 testshowvirtual libc6:i386
47 testequal "$pkglibc6" aptcache show libc6:armel
48 testequal "$pkglibc6" aptcache show libc6
49 testequal "$pkglibdb1" aptcache show libdb1:i386
50 testnopackage libdb1:armel
51 testequal "$pkglibdb1" aptcache show libdb1