diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-01-02 00:22:31 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-01-02 00:22:31 +0100 |
commit | 02dceb31f77f0812c76334a1758631c7cf9544a3 (patch) | |
tree | c3a10a2dd01c78eb6ff4c08e60d546ecea7b420c /doc | |
parent | 806969420fa6a12471b237eccd21edaff4a33767 (diff) |
add configuration PDiffs::Limit-options (FileLimit and SizeLimit) to
not download too many or too big patches (Closes: #554349)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/apt.conf.5.xml | 9 | ||||
-rw-r--r-- | doc/examples/configure-index | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/doc/apt.conf.5.xml b/doc/apt.conf.5.xml index 734ae1fe7..fd50e377f 100644 --- a/doc/apt.conf.5.xml +++ b/doc/apt.conf.5.xml @@ -221,7 +221,14 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; <varlistentry><term>PDiffs</term> <listitem><para>Try to download deltas called <literal>PDiffs</literal> for Packages or Sources files instead of downloading whole ones. True - by default.</para></listitem> + by default.</para> + <para>Two sub-options to limit the use of PDiffs are also available: + With <literal>FileLimit</literal> can be specified how many PDiff files + are downloaded at most to patch a file. <literal>SizeLimit</literal> + on the other hand is the maximum precentage of the size of all patches + compared to the size of the targeted file. If one of these limits is + exceeded the complete file is downloaded instead of the patches. + </para></listitem> </varlistentry> <varlistentry><term>Queue-Mode</term> diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 0a20e8f2b..be461aaad 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -176,7 +176,10 @@ Acquire Source-Symlinks "true"; PDiffs "true"; // try to get the IndexFile diffs - + PDiffs::FileLimit "4"; // don't use diffs if we would need more than 4 diffs + PDiffs::SizeLimit "50"; // don't use diffs if size of all patches excess + // 50% of the size of the original file + // HTTP method configuration http { |