test-ubuntu-bug-835625-multiarch-lockstep-installed-first 1015 B

1234567891011121314151617181920212223242526272829303132
  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. testequal 'Reading package lists...
  13. Building dependency tree...
  14. The following extra 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])' aptget install libsame:amd64 -s