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