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

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture "i386"
  7. setupaptarchive
  8. testequal 'Reading package lists...
  9. Building dependency tree...
  10. The following packages will be REMOVED:
  11. oldcrap
  12. The following NEW packages will be installed:
  13. libdb4.8
  14. The following packages will be upgraded:
  15. apt libc6
  16. 2 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  17. Need to get 0 B/6724 kB of archives.
  18. After this operation, 1523 kB of additional disk space will be used.
  19. E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
  20. echo 'apt hold' | dpkg --set-selections
  21. testequal 'Reading package lists...
  22. Building dependency tree...
  23. The following packages have been kept back:
  24. apt
  25. The following packages will be upgraded:
  26. libc6
  27. 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  28. Need to get 0 B/3881 kB of archives.
  29. After this operation, 0 B of additional disk space will be used.
  30. E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only -o Test='hold-back-apt'