test-resolve-by-keep-new-recommends 506 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. insertinstalledpackage 'foo' 'i386' '1.0'
  8. insertpackage 'unstable' 'foo' 'i386' '2.0' 'Recommends: bar'
  9. setupaptarchive
  10. UPGRADE_KEEP="Reading package lists...
  11. Building dependency tree...
  12. Calculating upgrade...
  13. The following packages have been kept back:
  14. foo
  15. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded."
  16. testsuccessequal "$UPGRADE_KEEP" aptget upgrade -s