From 691a36e9117d6baa7fe8ff685d2a749f780134e0 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 2 Jul 2015 02:45:50 +0000 Subject: [PATCH] This cache limit patch was a year old :/. A cache-limit.diff git-svn-id: http://svn.telesphoreo.org/trunk@804 514c082c-b64e-11dc-b46d-3d985efe055d --- apt-pkg/pkgcachegen.cc | 4 ++-- apt-pkg/pkgcachegen.cc.orig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index e5c572f..8606f30 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -916,7 +916,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress, MMap **OutMap,bool AllowMem) { bool const Debug = _config->FindB("Debug::pkgCacheGen", false); - unsigned long const MapSize = _config->FindI("APT::Cache-Limit",24*1024*1024); + unsigned long const MapSize = _config->FindI("APT::Cache-Limit",128*1024*1024); vector Files; for (vector::const_iterator i = List.begin(); @@ -1081,7 +1081,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress, /* */ bool pkgMakeOnlyStatusCache(OpProgress &Progress,DynamicMMap **OutMap) { - unsigned long MapSize = _config->FindI("APT::Cache-Limit",20*1024*1024); + unsigned long MapSize = _config->FindI("APT::Cache-Limit",128*1024*1024); vector Files; unsigned long EndOfSource = Files.size(); if (_system->AddStatusFiles(Files) == false) diff --git a/apt-pkg/pkgcachegen.cc.orig b/apt-pkg/pkgcachegen.cc.orig index 3eeb18c..1d1b1b3 100644 --- a/apt-pkg/pkgcachegen.cc.orig +++ b/apt-pkg/pkgcachegen.cc.orig @@ -827,7 +827,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress, MMap **OutMap,bool AllowMem) { bool const Debug = _config->FindB("Debug::pkgCacheGen", false); - unsigned long const MapSize = _config->FindI("APT::Cache-Limit",24*1024*1024); + unsigned long const MapSize = _config->FindI("APT::Cache-Limit",128*1024*1024); vector Files; for (vector::const_iterator i = List.begin(); @@ -992,7 +992,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress, /* */ bool pkgMakeOnlyStatusCache(OpProgress &Progress,DynamicMMap **OutMap) { - unsigned long MapSize = _config->FindI("APT::Cache-Limit",20*1024*1024); + unsigned long MapSize = _config->FindI("APT::Cache-Limit",128*1024*1024); vector Files; unsigned long EndOfSource = Files.size(); if (_system->AddStatusFiles(Files) == false) -- 2.45.2