X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a656821931a863ffcf46a719a57206eb0d2b11b3..e5d83da5732ab4ae18cab192345726ba13fd8c34:/apt-pkg/depcache.h diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index 62ab2d8c3..6ce204e65 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: depcache.h,v 1.6 1998/11/13 07:08:58 jgg Exp $ +// $Id: depcache.h,v 1.12 1999/10/22 05:58:54 jgg Exp $ /* ###################################################################### DepCache - Dependency Extension data for the cache @@ -60,7 +60,7 @@ class pkgDepCache : public pkgCache DepCandPolicy = (1 << 4), DepCandMin = (1 << 5)}; // These flags are used in StateCache::iFlags - enum InternalFlags {AutoKept = (1 << 0)}; + enum InternalFlags {AutoKept = (1 << 0), Purge = (1 << 1), ReInstall = (1 << 2)}; enum VersionTypes {NowVersion, InstallVersion, CandidateVersion}; enum ModeList {ModeDelete = 0, ModeKeep = 1, ModeInstall = 2}; @@ -153,7 +153,7 @@ class pkgDepCache : public pkgCache public: // Policy implementation - virtual VerIterator GetCandidateVer(PkgIterator Pkg); + virtual VerIterator GetCandidateVer(PkgIterator Pkg,bool AllowCurrent = true); virtual bool IsImportantDep(DepIterator Dep); // Accessors @@ -162,12 +162,13 @@ class pkgDepCache : public pkgCache // Manipulators void MarkKeep(PkgIterator const &Pkg,bool Soft = false); - void MarkDelete(PkgIterator const &Pkg); + void MarkDelete(PkgIterator const &Pkg,bool Purge = false); void MarkInstall(PkgIterator const &Pkg,bool AutoInst = true); + void SetReInstall(PkgIterator const &Pkg,bool To); // This is for debuging void Update(OpProgress *Prog = 0); - + // Size queries inline signed long UsrSize() {return iUsrSize;}; inline unsigned long DebSize() {return iDownloadSize;}; @@ -178,6 +179,7 @@ class pkgDepCache : public pkgCache inline unsigned long BadCount() {return iBadCount;}; pkgDepCache(MMap &Map,OpProgress &Prog); + pkgDepCache(MMap &Map); virtual ~pkgDepCache(); };