test-apt-update-transactions 529 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture "i386"
  7. insertpackage 'unstable' 'foo' 'all' '1.0'
  8. setupaptarchive --no-update
  9. changetowebserver
  10. # break package file
  11. cat > aptarchive/dists/unstable/main/binary-i386/Packages <<EOF
  12. Package: bar
  13. EOF
  14. compressfile aptarchive/dists/unstable/main/binary-i386/Packages '+1hour'
  15. # ensure that a update will only succeed entirely or not at all
  16. testfailure aptget update
  17. testequal "partial" ls rootdir/var/lib/apt/lists