test-bug-612557-garbage-upgrade 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. insertpackage 'unstable' 'unrelated' 'all' '1:3.3.0-2'
  8. insertpackage 'unstable' 'python-uno' 'all' '1:3.3.0-2' 'Depends: libreoffice-common'
  9. insertpackage 'unstable' 'libreoffice-common' 'all' '1:3.3.0-2' 'Conflicts: openoffice.org-common'
  10. setupaptarchive
  11. touch rootdir/var/lib/apt/extended_states
  12. testsuccess aptmark markauto python-uno openoffice.org-common
  13. #aptmark unmarkauto openoffice.org-emailmerge
  14. testmarkedauto python-uno openoffice.org-common
  15. testfailureequal 'Reading package lists...
  16. Building dependency tree...
  17. Reading state information...
  18. The following additional packages will be installed:
  19. libreoffice-common
  20. The following packages will be REMOVED:
  21. openoffice.org-common openoffice.org-emailmerge
  22. The following NEW packages will be installed:
  23. libreoffice-common
  24. The following packages will be upgraded:
  25. python-uno
  26. 1 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
  27. After this operation, 53.2 MB disk space will be freed.
  28. E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno
  29. testsuccess aptmark markauto openoffice.org-emailmerge
  30. testmarkedauto python-uno openoffice.org-common openoffice.org-emailmerge
  31. testfailureequal 'Reading package lists...
  32. Building dependency tree...
  33. Reading state information...
  34. The following additional packages will be installed:
  35. libreoffice-common
  36. The following packages will be REMOVED:
  37. openoffice.org-common openoffice.org-emailmerge
  38. The following NEW packages will be installed:
  39. libreoffice-common
  40. The following packages will be upgraded:
  41. python-uno
  42. 1 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
  43. After this operation, 53.2 MB disk space will be freed.
  44. E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno
  45. testfailureequal 'Reading package lists...
  46. Building dependency tree...
  47. Reading state information...
  48. The following packages will be REMOVED:
  49. openoffice.org-common openoffice.org-emailmerge python-uno
  50. 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
  51. After this operation, 53.3 MB disk space will be freed.
  52. E: Trivial Only specified but this is not a trivial operation.' aptget autoremove --trivial-only