Browse Source

* apt-pkg/pkgcachegen.cc:
- increased the cache limit

Michael Vogt 20 years ago
parent
commit
a498783013
2 changed files with 10 additions and 2 deletions
  1. 2 2
      apt-pkg/pkgcachegen.cc
  2. 8 0
      debian/changelog

+ 2 - 2
apt-pkg/pkgcachegen.cc

@@ -785,7 +785,7 @@ static bool BuildCache(pkgCacheGenerator &Gen,
 bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress,
 			MMap **OutMap,bool AllowMem)
 {
-   unsigned long MapSize = _config->FindI("APT::Cache-Limit",12*1024*1024);
+   unsigned long MapSize = _config->FindI("APT::Cache-Limit",16*1024*1024);
    
    vector<pkgIndexFile *> Files;
    for (vector<metaIndex *>::const_iterator i = List.begin();
@@ -932,7 +932,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress,
 /* */
 bool pkgMakeOnlyStatusCache(OpProgress &Progress,DynamicMMap **OutMap)
 {
-   unsigned long MapSize = _config->FindI("APT::Cache-Limit",8*1024*1024);
+   unsigned long MapSize = _config->FindI("APT::Cache-Limit",12*1024*1024);
    vector<pkgIndexFile *> Files;
    unsigned long EndOfSource = Files.size();
    if (_system->AddStatusFiles(Files) == false)

+ 8 - 0
debian/changelog

@@ -1,3 +1,11 @@
+apt (0.6.45ubuntu5) edgy; urgency=low
+
+  * apt-pkg/pkgcachegen.cc:
+    - increase the APT::Cache-Limit to deal with the increased demand due
+      to the translated descriptions
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Tue, 15 Aug 2006 12:06:26 +0200
+
 apt (0.6.45ubuntu4) edgy; urgency=low
 
   * cmdline/apt-get.cc: