]>
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>
10 // class CacheFile - Cover class for some dependency cache functions /*{{{*/
11 // ---------------------------------------------------------------------
13 class CacheFile
: public pkgCacheFile
15 static pkgCache
*SortCache
;
16 static int NameComp(const void *a
,const void *b
) APT_PURE
;
19 pkgCache::Package
**List
;
22 bool CheckDeps(bool AllowBroken
= false);
23 bool BuildCaches(bool WithLock
= true)
25 OpTextProgress
Prog(*_config
);
26 if (pkgCacheFile::BuildCaches(&Prog
,WithLock
) == false)
30 bool Open(bool WithLock
= true)
32 OpTextProgress
Prog(*_config
);
33 if (pkgCacheFile::Open(&Prog
,WithLock
) == false)
41 if (_config
->FindB("APT::Get::Print-URIs") == true)
46 CacheFile() : List(0) {};