From 83758aed35c3eec66008b2ec01957c8e1cb129b5 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 2 Jan 2016 23:15:15 +0100 Subject: [PATCH] include all compressed Packages/Sources files in Release file Having a hardcoded list of compression types here doesn't really provide us with anything beside added complexity each time someone adds a new compression type. That we don't need to be that specific is evident by Contents and Translation-* matchers which are a lot more generic and didn't generate problems anyhow. --- ftparchive/writer.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index c0223a74c..90935ff8b 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -971,16 +971,10 @@ ReleaseWriter::ReleaseWriter(FileFd * const GivenOutput, string const &/*DB*/) : if (_config->FindB("APT::FTPArchive::Release::Default-Patterns", true) == true) { AddPattern("Packages"); - AddPattern("Packages.gz"); - AddPattern("Packages.bz2"); - AddPattern("Packages.lzma"); - AddPattern("Packages.xz"); + AddPattern("Packages.*"); AddPattern("Translation-*"); AddPattern("Sources"); - AddPattern("Sources.gz"); - AddPattern("Sources.bz2"); - AddPattern("Sources.lzma"); - AddPattern("Sources.xz"); + AddPattern("Sources.*"); AddPattern("Release"); AddPattern("Contents-*"); AddPattern("Index"); -- 2.45.2