]> git.saurik.com Git - apt.git/commitdiff
set Acquire::PDiffs::FileLimit to 20 to avoid needless huge fetches
authorMichael Vogt <mvo@debian.org>
Mon, 26 Aug 2013 19:09:33 +0000 (21:09 +0200)
committerMichael Vogt <mvo@debian.org>
Mon, 26 Aug 2013 19:09:33 +0000 (21:09 +0200)
apt-pkg/acquire-item.cc

index 97b2d1e29a79bcbd63c573883970050a3f12c51a..da00c9dd5c9df4adeda84de116a94558e11ca5d3 100644 (file)
@@ -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)