test-bug-709560-set-candidate-release 950 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. insertpackage 'experimental' 'foo' 'all' '2.0' 'Depends: foo-dep (= 2.1)'
  8. insertpackage 'experimental' 'foo-dep' 'all' '2.1'
  9. (
  10. cat <<EOF
  11. Package: *
  12. Pin: release a=experimental
  13. Pin-Priority: -10
  14. EOF
  15. ) > rootdir/etc/apt/preferences
  16. setupaptarchive
  17. testsuccessequal "Reading package lists...
  18. Building dependency tree...
  19. Selected version '2.0' (experimental [all]) for 'foo'
  20. Selected version '2.1' (experimental [all]) for 'foo-dep' because of 'foo'
  21. The following additional packages will be installed:
  22. foo-dep
  23. The following NEW packages will be installed:
  24. foo foo-dep
  25. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  26. Inst foo-dep (2.1 experimental [all])
  27. Inst foo (2.0 experimental [all])
  28. Conf foo-dep (2.1 experimental [all])
  29. Conf foo (2.0 experimental [all])" aptget install -q0 -s foo/experimental