]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-update-empty-files
allow uncompressed files to be empty in store again
[apt.git] / test / integration / test-apt-update-empty-files
CommitLineData
479f6fa4
DK
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6
7setupenvironment
8configarchitecture 'amd64'
9configcompression '.' 'gz'
10
11insertpackage 'unstable' 'apt' 'amd64' '1'
12# this automatically gives us an empty Sources file
13
14setupaptarchive --no-update
15
16msgmsg 'Test with file'
17rm -rf rootdir/var/lib/apt/lists
18testsuccess apt update -o Debug::pkgAcquire::Worker=1
19cp rootdir/tmp/testsuccess.output apt.output
20testsuccess grep '%0aAlt-Filename:%20/.*/Sources%0a' apt.output
21
22msgmsg 'Test with http'
23changetowebserver
24rm -rf rootdir/var/lib/apt/lists
25testsuccess apt update -o Debug::pkgAcquire::Worker=1