Просмотр исходного кода

set Acquire::PDiffs::FileLimit to 20 to avoid needless huge fetches

Michael Vogt лет назад: 13
Родитель
Сommit
51fc6def77
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apt-pkg/acquire-item.cc

+ 1 - 1
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)