summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-07-20 16:37:56 +0200
committerJulian Andres Klode <jak@debian.org>2011-07-20 16:37:56 +0200
commit0688ccd8d9ae40741f1a2ef0de25a59e2203fc5e (patch)
treee36723222a32aa90a16092806e9b516fc7e59c0e
parent6932831f2ace44eb3e586186ac848c8ca9b690da (diff)
apt-pkg/pkgcache.h: Add pkgCache::Header::CacheFileSize, storing the cache size
-rw-r--r--apt-pkg/pkgcache.cc2
-rw-r--r--apt-pkg/pkgcache.h3
-rw-r--r--debian/changelog7
3 files changed, 12 insertions, 0 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc
index 951caeb78..1fd21a0ad 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -84,6 +84,8 @@ pkgCache::Header::Header()
memset(PkgHashTable,0,sizeof(PkgHashTable));
memset(GrpHashTable,0,sizeof(GrpHashTable));
memset(Pools,0,sizeof(Pools));
+
+ CacheFileSize = 0;
}
/*}}}*/
// Cache::Header::CheckSizes - Check if the two headers have same *sz /*{{{*/
diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h
index 9a9f79420..87912aead 100644
--- a/apt-pkg/pkgcache.h
+++ b/apt-pkg/pkgcache.h
@@ -314,6 +314,9 @@ struct pkgCache::Header
map_ptrloc PkgHashTable[2*1048];
map_ptrloc GrpHashTable[2*1048];
+ /** \brief Size of the complete cache file */
+ unsigned long CacheFileSize;
+
bool CheckSizes(Header &Against) const;
Header();
};
diff --git a/debian/changelog b/debian/changelog
index ce2a6a8fc..6d990760d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+apt (0.8.16~exp4) UNRELEASED; urgency=low
+
+ * apt-pkg/pkgcache.h:
+ - [ABI break] Add pkgCache::Header::CacheFileSize, storing the cache size
+
+ -- Julian Andres Klode <jak@debian.org> Wed, 20 Jul 2011 16:23:55 +0200
+
apt (0.8.16~exp3) experimental; urgency=low
[ David Kalnischkies ]