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.
 
 
 
 
 
 

60 lines
1.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. predependstest() {
  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. predependstest "gawk | mawk"
  34. predependstest "mawk | gawk"
  35. predependstest "aawk | mawk | gawk"
  36. predependstest "aawk | gawk | mawk"
  37. predependstest "gawk | awk"
  38. predependstest "aawk | gawk | awk"
  39. predependstest "mawk | awk"
  40. predependstest "awk | gawk"
  41. predependstest "awk | gawk | aawk"
  42. predependstest "awk | mawk"
  43. predependstest "aawk | awk"
  44. predependstest "awk | aawk"
  45. predependstest "awk"
  46. # aptget install gawk mawk- -sqq -o Debug::pkgOrderList=1 #-o Debug::pkgPackageManager=1