From: Julian Andres Klode Date: Wed, 20 Jul 2011 14:38:24 +0000 (+0200) Subject: apt-pkg/pkgcachegen.cc: Write the file size to the cache X-Git-Tag: 0.9.0~81 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1dfda2ce4ce2848a0dda314038ff08ffb81b122b apt-pkg/pkgcachegen.cc: Write the file size to the cache --- diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index b89c8c0d3..70dcd9de9 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/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)); } /*}}}*/ diff --git a/debian/changelog b/debian/changelog index 6d990760d..0a161bce7 100644 --- a/debian/changelog +++ b/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 Wed, 20 Jul 2011 16:23:55 +0200