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.
 
 
 
 
 
 

99 lines
2.5 KiB

  1. #!/bin/sh
  2. set -e
  3. local TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture "i386"
  7. setupflataptarchive
  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. # rm rootdir/var/cache/apt/*.bin
  25. cp $TESTDIR/$(echo "$(basename $0)" | sed 's/test-/status-/') rootdir/var/lib/dpkg/status
  26. echo "$pkgbasefile
  27. Pre-Depends: $1
  28. " >> rootdir/var/lib/dpkg/status
  29. testequal "Inst gawk (1:3.1.7.dfsg-5 localhost [i386])
  30. Conf gawk (1:3.1.7.dfsg-5 localhost [i386])
  31. Remv mawk [1.3.3-15]" aptget install gawk mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g')
  32. }
  33. predependsgawk "gawk | mawk"
  34. predependsgawk "mawk | gawk"
  35. predependsgawk "aawk | mawk | gawk"
  36. predependsgawk "aawk | gawk | mawk"
  37. predependsgawk "gawk | awk"
  38. predependsgawk "aawk | gawk | awk"
  39. predependsgawk "mawk | awk"
  40. predependsgawk "awk | gawk"
  41. predependsgawk "awk | gawk | aawk"
  42. predependsgawk "awk | mawk"
  43. predependsgawk "aawk | awk"
  44. predependsgawk "awk | aawk"
  45. predependsgawk "awk"
  46. predependsgawk2() {
  47. # rm rootdir/var/cache/apt/*.bin
  48. cp $TESTDIR/$(echo "$(basename $0)" | sed 's/test-/status-/') rootdir/var/lib/dpkg/status
  49. echo "$pkgbasefile
  50. Pre-Depends: $1
  51. " >> rootdir/var/lib/dpkg/status
  52. testequalor2 "Inst coolstuff (1-1 localhost [all])
  53. Conf coolstuff (1-1 localhost [all])
  54. Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386])
  55. Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386])
  56. Remv mawk [1.3.3-15]" "Inst coolstuff (1-1 localhost [all])
  57. Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386])
  58. Conf coolstuff (1-1 localhost [all])
  59. Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386])
  60. Remv mawk [1.3.3-15]" aptget install gawk2 mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g')
  61. }
  62. predependsgawk2 "gawk2 | mawk"
  63. predependsgawk2 "mawk | gawk2"
  64. predependsgawk2 "aawk | mawk | gawk2"
  65. predependsgawk2 "aawk | gawk2 | mawk"
  66. predependsgawk2 "gawk2 | awk"
  67. predependsgawk2 "aawk | gawk2 | awk"
  68. predependsgawk2 "mawk | awk"
  69. predependsgawk2 "awk | gawk2"
  70. predependsgawk2 "awk | gawk2 | aawk"
  71. predependsgawk2 "awk | mawk"
  72. predependsgawk2 "aawk | awk"
  73. predependsgawk2 "awk | aawk"
  74. predependsgawk2 "awk"
  75. # aptget install gawk2 mawk- -s #-o Debug::pkgOrderList=1 #-o Debug::pkgPackageManager=1