You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-bug-590041-prefer-non-virtual-packages 1.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'i386' 'armel'
  7. pkglibc6="Package: libc6
  8. Architecture: armel
  9. Version: 2.11.2-2~0.3
  10. Description: Embedded GNU C Library: Shared libraries
  11. Description-md5: b8c1e0561b75e2dc6b6482a99079c3e4
  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. pkglibdb1="Package: libdb1
  23. Architecture: i386
  24. Version: 2.1.3-13~0.3
  25. Replaces: libc6 (<< 2.2.5-13~0.3)
  26. Description: The Berkeley database routines [glibc 2.0/2.1 compatibility]
  27. Description-md5: de1876f7fe7f7709a110875e145e38a8
  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. cat >aptarchive/Packages <<EOF
  39. $pkglibc6
  40. $pkglibdb1
  41. EOF
  42. setupaptarchive
  43. testnopackage libc6:i386
  44. testsuccessequal "$pkglibc6" aptcache show libc6:armel
  45. testsuccessequal "$pkglibc6" aptcache show libc6
  46. testsuccessequal "$pkglibdb1" aptcache show libdb1:i386
  47. testnopackage libdb1:armel
  48. testsuccessequal "$pkglibdb1" aptcache show libdb1