summaryrefslogtreecommitdiff
path: root/apt-pkg
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 /apt-pkg
parent0688ccd8d9ae40741f1a2ef0de25a59e2203fc5e (diff)
apt-pkg/pkgcachegen.cc: Write the file size to the cache
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/pkgcachegen.cc1
1 files changed, 1 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));
}
/*}}}*/