// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: pkgcachegen.h,v 1.18 2001/02/20 07:03:17 jgg Exp $
+// $Id: pkgcachegen.h,v 1.19 2002/07/08 03:13:30 jgg Exp $
/* ######################################################################
Package Cache Generator - Generator for the cache structure.
string PkgFileName;
pkgCache::PackageFile *CurrentFile;
+
+ // Flag file dependencies
+ bool FoundFileDeps;
bool NewPackage(pkgCache::PkgIterator &Pkg,string Pkg);
bool NewFileVer(pkgCache::VerIterator &Ver,ListParser &List);
inline pkgCache &GetCache() {return Cache;};
inline pkgCache::PkgFileIterator GetCurFile()
{return pkgCache::PkgFileIterator(Cache,CurrentFile);};
+
+ bool HasFileDeps() {return FoundFileDeps;};
+ bool MergeFileProvides(ListParser &List);
pkgCacheGenerator(DynamicMMap *Map,OpProgress *Progress);
~pkgCacheGenerator();
// Some cache items
pkgCache::VerIterator OldDepVer;
map_ptrloc *OldDepLast;
+
+ // Flag file dependencies
+ bool FoundFileDeps;
protected:
virtual bool Step() = 0;
+ inline bool HasFileDeps() {return FoundFileDeps;};
+ virtual bool CollectFileProvides(pkgCache &Cache,
+ pkgCache::VerIterator Ver) {return true;};
+
+ ListParser() : FoundFileDeps(false) {};
virtual ~ListParser() {};
};