]>
git.saurik.com Git - apt.git/blob - apt-private/private-cachefile.h
1 #ifndef APT_PRIVATE_CACHEFILE_H
2 #define APT_PRIVATE_CACHEFILE_H
4 #include <apt-pkg/cachefile.h>
5 #include <apt-pkg/progress.h>
6 #include <apt-pkg/configuration.h>
7 #include <apt-pkg/pkgcache.h>
8 #include <apt-pkg/macros.h>
11 // class CacheFile - Cover class for some dependency cache functions /*{{{*/
12 // ---------------------------------------------------------------------
14 class APT_PUBLIC CacheFile
: public pkgCacheFile
16 static pkgCache
*SortCache
;
17 APT_HIDDEN
static int NameComp(const void *a
,const void *b
) APT_PURE
;
20 pkgCache::Package
**List
;
23 bool CheckDeps(bool AllowBroken
= false);
24 bool BuildCaches(bool WithLock
= true)
26 OpTextProgress
Prog(*_config
);
27 if (pkgCacheFile::BuildCaches(&Prog
,WithLock
) == false)
31 bool Open(bool WithLock
= true)
33 OpTextProgress
Prog(*_config
);
34 if (pkgCacheFile::Open(&Prog
,WithLock
) == false)
42 if (_config
->FindB("APT::Get::Print-URIs") == true)
47 CacheFile() : List(0) {};