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.

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

123456789101112131415161718192021
  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