test-bug-590438-broken-provides-thanks-to-remove-order 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. setupaptarchive
  8. pkgbasefile="Package: base-files
  9. Status: install ok installed
  10. Essential: yes
  11. Priority: required
  12. Section: admin
  13. Installed-Size: 472
  14. Maintainer: Santiago Vila <sanvila@debian.org>
  15. Architecture: i386
  16. Version: 5.8
  17. Replaces: base, dpkg (<= 1.15.0), miscutils
  18. Provides: base
  19. Filename: pool/main/b/base-files/base-files_5.8_i386.deb
  20. Size: 73986
  21. MD5sum: 8489687ce10e656babd467c9ee389349
  22. Description-de: Verschiedene Dateien für das Basis-System von Debian"
  23. predependsgawk() {
  24. cp "$TESTDIR/$(echo "$(basename "$0")" | sed 's/test-/status-/')" rootdir/var/lib/dpkg/status
  25. echo "$pkgbasefile
  26. Pre-Depends: $1
  27. " >> rootdir/var/lib/dpkg/status
  28. testsuccessequal "Inst gawk (1:3.1.7.dfsg-5 localhost [i386])
  29. Conf gawk (1:3.1.7.dfsg-5 localhost [i386])
  30. Remv mawk [1.3.3-15]" aptget install gawk mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g')
  31. }
  32. predependsgawk "gawk | mawk"
  33. predependsgawk "mawk | gawk"
  34. predependsgawk "aawk | mawk | gawk"
  35. predependsgawk "aawk | gawk | mawk"
  36. predependsgawk "gawk | awk"
  37. predependsgawk "aawk | gawk | awk"
  38. predependsgawk "mawk | awk"
  39. predependsgawk "awk | gawk"
  40. predependsgawk "awk | gawk | aawk"
  41. predependsgawk "awk | mawk"
  42. predependsgawk "aawk | awk"
  43. predependsgawk "awk | aawk"
  44. predependsgawk "awk"
  45. predependsgawk2() {
  46. cp "$TESTDIR/$(echo "$(basename "$0")" | sed 's/test-/status-/')" rootdir/var/lib/dpkg/status
  47. echo "$pkgbasefile
  48. Pre-Depends: $1
  49. " >> rootdir/var/lib/dpkg/status
  50. testequalor2 "Inst coolstuff (1-1 localhost [all])
  51. Conf coolstuff (1-1 localhost [all])
  52. Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386])
  53. Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386])
  54. Remv mawk [1.3.3-15]" "Inst coolstuff (1-1 localhost [all])
  55. Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386])
  56. Conf coolstuff (1-1 localhost [all])
  57. Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386])
  58. Remv mawk [1.3.3-15]" aptget install gawk2 mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g')
  59. }
  60. predependsgawk2 "gawk2 | mawk"
  61. predependsgawk2 "mawk | gawk2"
  62. predependsgawk2 "aawk | mawk | gawk2"
  63. predependsgawk2 "aawk | gawk2 | mawk"
  64. predependsgawk2 "gawk2 | awk"
  65. predependsgawk2 "aawk | gawk2 | awk"
  66. predependsgawk2 "mawk | awk"
  67. predependsgawk2 "awk | gawk2"
  68. predependsgawk2 "awk | gawk2 | aawk"
  69. predependsgawk2 "awk | mawk"
  70. predependsgawk2 "aawk | awk"
  71. predependsgawk2 "awk | aawk"
  72. predependsgawk2 "awk"
  73. # aptget install gawk2 mawk- -s #-o Debug::pkgOrderList=1 #-o Debug::pkgPackageManager=1