You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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

123456789101112131415161718192021222324252627
  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