]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-update-transactions
ignore Acquire::GzipIndexes for cdrom sources
[apt.git] / test / integration / test-apt-update-transactions
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6
7 setupenvironment
8 configarchitecture "i386"
9
10 insertpackage 'unstable' 'foo' 'all' '1.0'
11
12 setupaptarchive --no-update
13 changetowebserver
14
15 # break package file
16 cat > aptarchive/dists/unstable/main/binary-i386/Packages <<EOF
17 Package: bar
18 EOF
19 compressfile aptarchive/dists/unstable/main/binary-i386/Packages '+1hour'
20
21 # ensure that a update will only succeed entirely or not at all
22 testfailure aptget update
23 testequal "partial" ls rootdir/var/lib/apt/lists
24