test-bug-64141-install-dependencies-for-on-hold 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'native' 'strange-arch'
  7. insertpackage 'unstable' 'unrelated' 'strange-arch' '1'
  8. insertinstalledpackage 'apt' 'native' '0.8.9' 'Depends: libc6 (>= 2.3.4)'
  9. insertinstalledpackage 'libc6' 'native' '2.4.1-1'
  10. insertinstalledpackage 'oldcrap' 'all' '1-1'
  11. insertpackage 'unstable' 'apt' 'native' '0.8.10' 'Depends: libc6 (>= 2.10), libdb4.8
  12. Breaks: oldcrap'
  13. insertpackage 'unstable' 'libc6' 'native' '2.11.2-7'
  14. insertpackage 'unstable' 'libdb4.8' 'native' '4.8.30-3'
  15. setupaptarchive
  16. testequal 'Reading package lists...
  17. Building dependency tree...
  18. The following packages will be REMOVED:
  19. oldcrap
  20. The following NEW packages will be installed:
  21. libdb4.8
  22. The following packages will be upgraded:
  23. apt libc6
  24. 2 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  25. After this operation, 0 B of additional disk space will be used.
  26. E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
  27. aptmark hold apt -qq
  28. testequal 'Reading package lists...
  29. Building dependency tree...
  30. The following packages have been kept back:
  31. apt
  32. The following packages will be upgraded:
  33. libc6
  34. 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  35. After this operation, 0 B of additional disk space will be used.
  36. E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only -o Test='hold-back-apt'