From 1412cf51403286e9c040f9f86fd4d8306e62aff2 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 9 Apr 2021 18:16:10 +0200 Subject: Error on packages without a Size field (option Acquire::AllowUnsizedPackages) Repositories without Size information for packages are not proper and need fixing. This ensures people see an error in CI, and get notifications and hence the ability to fix it. It can be turned off by setting Acquire::AllowUnsizedPackages to true. --- test/integration/framework | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/integration/framework') diff --git a/test/integration/framework b/test/integration/framework index cfde80329..412a96577 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -486,6 +486,10 @@ EOF echo 'APT::Machine-ID "912e43bd1c1d4ba481f9f8ccab25f9ee";' > rootdir/etc/apt/apt.conf.d/machine-id + # XXX: We really ought to make the packages in the test suite all have Size fields. + # But this needs a lot more changes, so let's keep it simple for stable updates. + echo 'Acquire::AllowUnsizedPackages "true";' >> rootdir/etc/apt/apt.conf.d/temporary-allow-unsized-packages + configcompression '.' 'gz' #'bz2' 'lzma' 'xz' confighashes 'SHA256' # these are tests, not security best-practices -- cgit v1.2.3-70-g09d2