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.
 
 
 
 
 
 

57 lines
2.4 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. insertpackage 'unstable' 'libreoffice' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
  8. insertpackage 'unstable' 'libreoffice-core' 'all' '1:3.3.1~rc1-2' 'Conflicts: openoffice.org-core'
  9. insertpackage 'unstable' 'libreoffice-officebean' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
  10. insertpackage 'unstable' 'openoffice.org-officebean' 'all' '1:3.3.0-5' 'Depends: libreoffice-officebean'
  11. setupaptarchive
  12. touch rootdir/var/lib/apt/extended_states
  13. testsuccess aptmark markauto openoffice.org-officebean
  14. testmarkedauto openoffice.org-officebean
  15. AUTOREMOVE='apt autoremove'
  16. if [ -n "$SUDO_USER" ]; then
  17. AUTOREMOVE="sudo $AUTOREMOVE"
  18. fi
  19. testfailureequal "Reading package lists...
  20. Building dependency tree...
  21. Reading state information...
  22. The following packages were automatically installed and are no longer required:
  23. libreoffice-officebean openoffice.org-officebean
  24. Use '$AUTOREMOVE' to remove them.
  25. The following additional packages will be installed:
  26. libreoffice-core libreoffice-officebean openoffice.org-officebean
  27. The following packages will be REMOVED:
  28. openoffice.org-core
  29. The following NEW packages will be installed:
  30. libreoffice libreoffice-core libreoffice-officebean
  31. The following packages will be upgraded:
  32. openoffice.org-officebean
  33. 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
  34. After this operation, 126 MB disk space will be freed.
  35. E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only
  36. testequal "Reading package lists...
  37. Building dependency tree...
  38. Reading state information...
  39. 2 packages were automatically installed and are no longer required.
  40. Use '$AUTOREMOVE' to remove them.
  41. The following additional packages will be installed:
  42. libreoffice-core libreoffice-officebean openoffice.org-officebean
  43. The following packages will be REMOVED:
  44. openoffice.org-core
  45. The following NEW packages will be installed:
  46. libreoffice libreoffice-core libreoffice-officebean
  47. The following packages will be upgraded:
  48. openoffice.org-officebean
  49. 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
  50. After this operation, 126 MB disk space will be freed.
  51. E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only -o APT::Get::HideAutoRemove=small