test-provides-gone-with-upgrade 862 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. insertinstalledpackage 'apt' 'i386' '0.8.14' 'Provides: libapt-pkg4.10'
  8. insertpackage 'unstable' 'apt' 'i386' '0.8.15' 'Depends: libapt-pkg4.10'
  9. insertpackage 'unstable' 'libapt-pkg4.10' 'i386' '0.8.15' 'Breaks: apt (<< 0.8.15)
  10. Replaces: apt (<< 0.8.15)'
  11. setupaptarchive
  12. testsuccessequal 'Reading package lists...
  13. Building dependency tree...
  14. Calculating upgrade...
  15. The following NEW packages will be installed:
  16. libapt-pkg4.10
  17. The following packages will be upgraded:
  18. apt
  19. 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  20. Inst apt [0.8.14] (0.8.15 unstable [i386]) []
  21. Inst libapt-pkg4.10 (0.8.15 unstable [i386])
  22. Conf libapt-pkg4.10 (0.8.15 unstable [i386])
  23. Conf apt (0.8.15 unstable [i386])' aptget dist-upgrade -s