test-ubuntu-bug-835625-multiarch-lockstep-installed-first 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386'
  7. insertinstalledpackage 'libsame' 'i386' '1'
  8. insertinstalledpackage 'apt' 'i386' '1' 'Depends: libsame (= 1)'
  9. insertpackage 'unstable' 'libsame' 'i386,amd64' '2' 'Multi-Arch: same'
  10. insertpackage 'unstable' 'apt' 'i386' '2' 'Depends: libsame (= 2)'
  11. setupaptarchive
  12. testequalor2 'Reading package lists...
  13. Building dependency tree...
  14. The following additional packages will be installed:
  15. apt:i386 libsame:i386
  16. The following NEW packages will be installed:
  17. libsame
  18. The following packages will be upgraded:
  19. apt:i386 libsame:i386
  20. 2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  21. Inst libsame:i386 [1] (2 unstable [i386]) [apt:i386 ]
  22. Inst libsame (2 unstable [amd64]) [apt:i386 ]
  23. Conf libsame:i386 (2 unstable [i386]) [apt:i386 ]
  24. Conf libsame (2 unstable [amd64]) [apt:i386 ]
  25. Inst apt:i386 [1] (2 unstable [i386])
  26. Conf apt:i386 (2 unstable [i386])' 'Reading package lists...
  27. Building dependency tree...
  28. The following additional packages will be installed:
  29. apt:i386 libsame:i386
  30. The following NEW packages will be installed:
  31. libsame
  32. The following packages will be upgraded:
  33. apt:i386 libsame:i386
  34. 2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  35. Inst apt:i386 [1] (2 unstable [i386]) []
  36. Inst libsame:i386 [1] (2 unstable [i386])
  37. Inst libsame (2 unstable [amd64])
  38. Conf libsame:i386 (2 unstable [i386])
  39. Conf libsame (2 unstable [amd64])
  40. Conf apt:i386 (2 unstable [i386])' aptget install libsame:amd64 -s