X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6c139d6e362f04a1582e8a8f511f8aeab031fecf..7b0229fe01e9b300e1a67d82f7a6511c31444756:/apt-pkg/depcache.h diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index 222e34425..bd64ee5a2 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.1 1998/07/07 04:17:01 jgg Exp $ +// $Id: depcache.h,v 1.5 1998/10/02 04:39:45 jgg Exp $ /* ###################################################################### DepCache - Dependency Extension data for the cache @@ -40,10 +40,11 @@ #define PKGLIB_DEPCACHE_H #ifdef __GNUG__ -#pragma interface "pkglib/depcache.h" +#pragma interface "apt-pkg/depcache.h" #endif -#include +#include +#include class pkgDepCache : public pkgCache { @@ -93,7 +94,7 @@ class pkgDepCache : public pkgCache inline bool Delete() const {return Mode == ModeDelete;}; inline bool Keep() const {return Mode == ModeKeep;}; inline bool Upgrade() const {return Status > 0 && Mode == ModeInstall;}; - inline bool Upgradable() const {return Status == 1;}; + inline bool Upgradable() const {return Status >= 1;}; inline bool Downgrade() const {return Status < 0;}; inline bool Held() const {return Status != 0 && Keep();}; inline bool NowBroken() const {return (DepState & DepNowMin) != DepNowMin;}; @@ -109,7 +110,7 @@ class pkgDepCache : public pkgCache void BuildGroupOrs(VerIterator const &V); void UpdateVerState(PkgIterator Pkg); - bool Init(); + bool Init(OpProgress *Prog); protected: @@ -165,14 +166,8 @@ class pkgDepCache : public pkgCache void MarkInstall(PkgIterator const &Pkg,bool AutoInst = true); // This is for debuging - void Update(); + void Update(OpProgress *Prog = 0); - // Dep Processing for AutoKeep - void ResolveConflicts(unsigned char *Touched); - - // Hook to keep the extra data in sync - virtual bool ReMap(); - // Size queries inline long UsrSize() {return iUsrSize;}; inline long DebSize() {return iDownloadSize;}; @@ -182,7 +177,7 @@ class pkgDepCache : public pkgCache inline long BrokenCount() {return iBrokenCount;}; inline long BadCount() {return iBadCount;}; - pkgDepCache(MMap &Map); + pkgDepCache(MMap &Map,OpProgress &Prog); virtual ~pkgDepCache(); };