]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/pkgcachegen.cc: Write the file size to the cache
authorJulian Andres Klode <jak@debian.org>
Wed, 20 Jul 2011 14:38:24 +0000 (16:38 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 20 Jul 2011 14:38:24 +0000 (16:38 +0200)
apt-pkg/pkgcachegen.cc
debian/changelog

index b89c8c0d392588d86d92b841c1aece8a52713cfc..70dcd9de999959a8b2cea135bd201a5256076fa0 100644 (file)
@@ -98,6 +98,7 @@ pkgCacheGenerator::~pkgCacheGenerator()
       return;
    
    Cache.HeaderP->Dirty = false;
       return;
    
    Cache.HeaderP->Dirty = false;
+   Cache.HeaderP->CacheFileSize = Map.Size();
    Map.Sync(0,sizeof(pkgCache::Header));
 }
                                                                        /*}}}*/
    Map.Sync(0,sizeof(pkgCache::Header));
 }
                                                                        /*}}}*/
index 6d990760d9ede26f6bf2a231f8d627ab03746e81..0a161bce720c408d598039a8f6e1c0af52e4a9a0 100644 (file)
@@ -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/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
 
 
  -- Julian Andres Klode <jak@debian.org>  Wed, 20 Jul 2011 16:23:55 +0200