X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6c139d6e362f04a1582e8a8f511f8aeab031fecf..bdae53f1bf6710404235bbbd071c55f4ec1a9330:/apt-pkg/orderlist.h diff --git a/apt-pkg/orderlist.h b/apt-pkg/orderlist.h index 0dc8a5038..f15db4ce6 100644 --- a/apt-pkg/orderlist.h +++ b/apt-pkg/orderlist.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: orderlist.h,v 1.1 1998/07/07 04:17:01 jgg Exp $ +// $Id: orderlist.h,v 1.6 1999/08/03 05:19:41 jgg Exp $ /* ###################################################################### Order List - Represents and Manipulates an ordered list of packages. @@ -18,10 +18,10 @@ #define PKGLIB_ORDERLIST_H #ifdef __GNUG__ -#pragma interface "pkglib/orderlist.h" +#pragma interface "apt-pkg/orderlist.h" #endif -#include +#include class pkgDepCache; class pkgOrderList @@ -48,6 +48,7 @@ class pkgOrderList // State Package **End; Package **List; + string *FileList; DepIterator Loops[20]; int LoopCount; int Depth; @@ -58,7 +59,7 @@ class pkgOrderList bool VisitDeps(DepFunc F,PkgIterator Pkg); bool VisitRDeps(DepFunc F,PkgIterator Pkg); bool VisitRProvides(DepFunc F,VerIterator Ver); - bool VisitProvides(DepIterator Pkg); + bool VisitProvides(DepIterator Pkg,bool Critical); // Dependency checking functions. bool DepUnPackCrit(DepIterator D); @@ -98,8 +99,10 @@ class pkgOrderList inline void Flag(PkgIterator Pkg,unsigned long F) {Flags[Pkg->ID] |= F;}; inline void Flag(Package *Pkg,unsigned long F) {Flags[Pkg->ID] |= F;}; inline bool IsNow(PkgIterator Pkg) {return (Flags[Pkg->ID] & States) == 0;}; + bool IsMissing(PkgIterator Pkg); void WipeFlags(unsigned long F); - + void SetFileList(string *FileList) {this->FileList = FileList;}; + // Accessors inline iterator begin() {return List;}; inline iterator end() {return End;}; @@ -111,7 +114,7 @@ class pkgOrderList // Ordering modes bool OrderCritical(); - bool OrderUnpack(); + bool OrderUnpack(string *FileList = 0); bool OrderConfigure(); int Score(PkgIterator Pkg);