test-bug-723586-any-stripped-in-single-arch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. insertinstalledpackage 'python3' 'all' '3.2.3-6'
  8. insertpackage 'unstable' 'python3' 'amd64' '3.3.2-16' 'Multi-Arch: allowed'
  9. insertpackage 'stable' 'python3-gnupg' 'all' '0.3.5-2' 'Depends: python3:any (>= 3.2.3-3~)'
  10. insertpackage 'unstable' 'python-mips' 'amd64' '3' 'Depends: python3:mips'
  11. setupaptarchive
  12. INSTALLLOG='Reading package lists...
  13. Building dependency tree...
  14. The following additional packages will be installed:
  15. python3
  16. The following NEW packages will be installed:
  17. python3-gnupg
  18. The following packages will be upgraded:
  19. python3
  20. 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  21. Inst python3 [3.2.3-6] (3.3.2-16 unstable [amd64])
  22. Inst python3-gnupg (0.3.5-2 stable [all])
  23. Conf python3 (3.3.2-16 unstable [amd64])
  24. Conf python3-gnupg (0.3.5-2 stable [all])'
  25. FAILLOG='Reading package lists...
  26. Building dependency tree...
  27. Some packages could not be installed. This may mean that you have
  28. requested an impossible situation or if you are using the unstable
  29. distribution that some required packages have not yet been created
  30. or been moved out of Incoming.
  31. The following information may help to resolve the situation:
  32. The following packages have unmet dependencies:
  33. python-mips : Depends: python3:mips but it is not installable
  34. E: Unable to correct problems, you have held broken packages.'
  35. testsuccessequal "$INSTALLLOG" aptget install python3-gnupg -s
  36. aptcache showpkg python3 > showpkg.log
  37. testfailureequal "$FAILLOG" aptget install python-mips -s
  38. # same test, but this time in a multi-arch environment
  39. configarchitecture 'amd64' 'armhf'
  40. rm rootdir/var/cache/apt/*.bin
  41. testsuccessequal "$INSTALLLOG" aptget install python3-gnupg -s
  42. testsuccessequal "$(cat showpkg.log)" aptcache showpkg python3
  43. testfailureequal "$FAILLOG" aptget install python-mips -s