test-bug-745036-new-foreign-invalidates-cache 703 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. insertpackage 'unstable,installed' 'cool-foo' 'amd64' '1.0' 'Depends: foo'
  8. insertpackage 'unstable,installed' 'foo' 'amd64' '1.0' 'Multi-Arch: foreign'
  9. setupaptarchive
  10. testsuccess aptget check -s
  11. configarchitecture 'amd64' 'i386'
  12. testfailureequal 'E: The package cache was built for different architectures: amd64 vs amd64,i386' aptget check -s -o pkgCacheFile::Generate=false
  13. testsuccess aptget check -s
  14. insertinstalledpackage 'awesome-foo' 'i386' '1.0' 'Depends: foo'
  15. testsuccess aptget check -s
  16. testsuccess aptget update --no-download
  17. testsuccess aptget check -s