summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-07-20 16:38:24 +0200
committerJulian Andres Klode <jak@debian.org>2011-07-20 16:38:24 +0200
commit1dfda2ce4ce2848a0dda314038ff08ffb81b122b (patch)
tree6b1086c0c59cc8c18f4131b670b7eb20fefb9c69
parent0688ccd8d9ae40741f1a2ef0de25a59e2203fc5e (diff)
apt-pkg/pkgcachegen.cc: Write the file size to the cache
-rw-r--r--apt-pkg/pkgcachegen.cc1
-rw-r--r--debian/changelog2
2 files changed, 3 insertions, 0 deletions
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 <jak@debian.org> Wed, 20 Jul 2011 16:23:55 +0200