From 124e6916b7b02984803ff8217e8163947aae2882 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 27 May 2016 12:08:32 +0200 Subject: fix and document on the fly compressor config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libapt allows to configure compressors to be used by its system via configuration implemented in 03bef78461c6f443187b60799402624326843396, but that was never really documented and also only partly working, which also explains why the tests weren't using it… --- doc/examples/apt-ftparchive.conf | 8 ++++---- doc/examples/configure-index | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'doc/examples') diff --git a/doc/examples/apt-ftparchive.conf b/doc/examples/apt-ftparchive.conf index 0d245c0af..0e8bcb2ce 100644 --- a/doc/examples/apt-ftparchive.conf +++ b/doc/examples/apt-ftparchive.conf @@ -7,11 +7,11 @@ Dir { CacheDir "."; }; -// Create Packages, Packages.gz and Packages.bz2, remove what you don't need +// Create Packages, Packages.gz and Packages.xz, remove/add as needed Default { - Packages::Compress ". gzip bzip2"; - Sources::Compress ". gzip bzip2"; - Contents::Compress ". gzip bzip2"; + Packages::Compress ". gzip xz"; + Sources::Compress ". gzip xz"; + Contents::Compress ". gzip xz"; }; // Includes the main section. You can structure the directory tree under diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 8e8110d94..dc579c394 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -88,6 +88,16 @@ APT Post-Invoke {"touch /var/lib/apt/post-update-stamp"; }; }; + // define a new supported compressor on the fly + APT::Compressor::rev { + Name "rev"; + Extension ".reversed"; + Binary "rev"; + CompressArg {}; + UncompressArg {}; + Cost "10"; + }; + Authentication { TrustCDROM "false"; // consider the CD-ROM always trusted -- cgit v1.2.3