diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:51 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:51 +0000 |
commit | ad00ae81eb9e1f5384f8fe32879d483c72bbdace (patch) | |
tree | 90dc3818bc981902022cf43d1f44dc0c1fd2a45c /apt-pkg/pkgcachegen.cc | |
parent | 8efa2a3ba4ae833415223a888e4561e57e4bf132 (diff) |
DumpAvail works and apt-cache is complete
Author: jgg
Date: 1998-07-19 04:22:00 GMT
DumpAvail works and apt-cache is complete
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r-- | apt-pkg/pkgcachegen.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index 452caa74a..f5bf5c589 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcachegen.cc,v 1.10 1998/07/16 06:08:38 jgg Exp $ +// $Id: pkgcachegen.cc,v 1.11 1998/07/19 04:22:02 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -170,7 +170,8 @@ bool pkgCacheGenerator::NewFileVer(pkgCache::VerIterator &Ver, Ver->FileList = VF.Index(); VF->Offset = List.Offset(); VF->Size = List.Size(); - + if (Cache.HeaderP->MaxVerFileSize < VF->Size) + Cache.HeaderP->MaxVerFileSize = VF->Size; return true; } /*}}}*/ @@ -313,7 +314,8 @@ bool pkgCacheGenerator::SelectFile(string File,unsigned long Flags) CurrentFile->NextFile = Cache.HeaderP->FileList; CurrentFile->Flags = Flags; PkgFileName = File; - + Cache.HeaderP->FileList = CurrentFile - Cache.PkgFileP; + if (CurrentFile->FileName == 0) return false; return true; |