Explorar o código

apt-pkg/pkgcachegen.cc: Write the file size to the cache

Julian Andres Klode %!s(int64=15) %!d(string=hai) anos
pai
achega
1dfda2ce4c
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 1 0
      apt-pkg/pkgcachegen.cc
  2. 2 0
      debian/changelog

+ 1 - 0
apt-pkg/pkgcachegen.cc

@@ -98,6 +98,7 @@ pkgCacheGenerator::~pkgCacheGenerator()
       return;
    
    Cache.HeaderP->Dirty = false;
+   Cache.HeaderP->CacheFileSize = Map.Size();
    Map.Sync(0,sizeof(pkgCache::Header));
 }
 									/*}}}*/

+ 2 - 0
debian/changelog

@@ -2,6 +2,8 @@ apt (0.8.16~exp4) UNRELEASED; urgency=low
 
   * apt-pkg/pkgcache.h:
     - [ABI break] Add pkgCache::Header::CacheFileSize, storing the cache size
+  * apt-pkg/pkgcachegen.cc:
+    - Write the file size to the cache
 
  -- Julian Andres Klode <jak@debian.org>  Wed, 20 Jul 2011 16:23:55 +0200