From: Michael Vogt Date: Mon, 26 Aug 2013 19:09:33 +0000 (+0200) Subject: set Acquire::PDiffs::FileLimit to 20 to avoid needless huge fetches X-Git-Tag: 0.9.12~5^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/51fc6def77edfb1f429a48e5169519e9e05a759b set Acquire::PDiffs::FileLimit to 20 to avoid needless huge fetches --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 97b2d1e29..da00c9dd5 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -434,7 +434,7 @@ bool pkgAcqDiffIndex::ParseDiffIndex(string IndexDiffFile) /*{{{*/ if (available_patches.empty() == false) { // patching with too many files is rather slow compared to a fast download - unsigned long const fileLimit = _config->FindI("Acquire::PDiffs::FileLimit", 0); + unsigned long const fileLimit = _config->FindI("Acquire::PDiffs::FileLimit", 20); if (fileLimit != 0 && fileLimit < available_patches.size()) { if (Debug)