diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-05-04 12:43:08 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-05-04 12:43:08 +0200 |
commit | 52c41485092d6da77d2848a955609f22da50372c (patch) | |
tree | 7c43673d7d4381ea20b10ec456b1d458b582aeba /apt-pkg/pkgcachegen.cc | |
parent | 94449d7cd3eed7637c1ed78863c01ff207faa31e (diff) | |
download | apt-52c41485092d6da77d2848a955609f22da50372c.tar.gz |
* apt-pkg/pkgcache.h:
- enhance the Groups ABI by providing a ID as the other structs does
- check also the size of the Group struct then checking for the others
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r-- | apt-pkg/pkgcachegen.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index 114c9d5e..d96d3370 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -356,8 +356,7 @@ bool pkgCacheGenerator::NewGroup(pkgCache::GrpIterator &Grp, const string &Name) Grp->Next = Cache.HeaderP->GrpHashTable[Hash]; Cache.HeaderP->GrpHashTable[Hash] = Group; - Cache.HeaderP->GroupCount++; - + Grp->ID = Cache.HeaderP->GroupCount++; return true; } /*}}}*/ |