test-bug-613420-new-garbage-dependency 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. aptmark markauto openoffice.org-officebean
  14. testmarkedauto openoffice.org-officebean
  15. testequal "Reading package lists...
  16. Building dependency tree...
  17. Reading state information...
  18. The following packages were automatically installed and are no longer required:
  19. openoffice.org-officebean libreoffice-officebean
  20. Use 'apt-get autoremove' to remove them.
  21. The following extra packages will be installed:
  22. libreoffice-core libreoffice-officebean openoffice.org-officebean
  23. The following packages will be REMOVED:
  24. openoffice.org-core
  25. The following NEW packages will be installed:
  26. libreoffice libreoffice-core libreoffice-officebean
  27. The following packages will be upgraded:
  28. openoffice.org-officebean
  29. 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
  30. After this operation, 126 MB disk space will be freed.
  31. E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only