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