diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:39 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:39 +0000 |
commit | dcb79bae22bd3e4739db39e56d00b4d65ff42269 (patch) | |
tree | 4092cc0e128f0fa0f1a8d23218ba724fa216e279 /apt-pkg/pkgcache.cc | |
parent | 0149949bce07d3a15cb8a197df1240d56f7bcd26 (diff) |
Final testing
Author: jgg
Date: 1998-07-05 05:33:52 GMT
Final testing
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r-- | apt-pkg/pkgcache.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index e2602c88f..b9dbf34ec 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcache.cc,v 1.3 1998/07/04 22:32:11 jgg Exp $ +// $Id: pkgcache.cc,v 1.4 1998/07/05 05:33:53 jgg Exp $ /* ###################################################################### Package Cache - Accessor code for the cache @@ -49,7 +49,8 @@ pkgCache::Header::Header() VersionSz = sizeof(pkgCache::Version); DependencySz = sizeof(pkgCache::Dependency); ProvidesSz = sizeof(pkgCache::Provides); - + VerFileSz = sizeof(pkgCache::VerFile); + PackageCount = 0; VersionCount = 0; DependsCount = 0; @@ -70,7 +71,8 @@ bool pkgCache::Header::CheckSizes(Header &Against) const PackageSz == Against.PackageSz && PackageFileSz == Against.PackageFileSz && VersionSz == Against.VersionSz && - DependencySz == Against.DependencySz && + DependencySz == Against.DependencySz && + VerFileSz == Against.VerFileSz && ProvidesSz == Against.ProvidesSz) return true; return false; @@ -93,6 +95,7 @@ bool pkgCache::ReMap() // Apply the typecasts. HeaderP = (Header *)Map.Data(); PkgP = (Package *)Map.Data(); + VerFileP = (VerFile *)Map.Data(); PkgFileP = (PackageFile *)Map.Data(); VerP = (Version *)Map.Data(); ProvideP = (Provides *)Map.Data(); @@ -100,7 +103,6 @@ bool pkgCache::ReMap() StringItemP = (StringItem *)Map.Data(); StrP = (char *)Map.Data(); - cout << "Size is " << Map.Size() << endl; if (Map.Size() == 0) return false; |