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

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