summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-05-27 12:08:32 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-05-27 14:08:44 +0200
commit124e6916b7b02984803ff8217e8163947aae2882 (patch)
treec1eb71e8091c5d21fa757e5b94bcb82a3294c17f /doc/examples
parentcb6020cdfea3d6dec6f6ad13843ab46f0c10d562 (diff)
downloadapt-124e6916b7b02984803ff8217e8163947aae2882.tar.gz
fix and document on the fly compressor config
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…
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/apt-ftparchive.conf8
-rw-r--r--doc/examples/configure-index10
2 files changed, 14 insertions, 4 deletions
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