]>
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>
8 // class CacheFile - Cover class for some dependency cache functions /*{{{*/
9 // ---------------------------------------------------------------------
11 class CacheFile
: public pkgCacheFile
13 static pkgCache
*SortCache
;
14 static int NameComp(const void *a
,const void *b
);
17 pkgCache::Package
**List
;
20 bool CheckDeps(bool AllowBroken
= false);
21 bool BuildCaches(bool WithLock
= true)
23 OpTextProgress
Prog(*_config
);
24 if (pkgCacheFile::BuildCaches(&Prog
,WithLock
) == false)
28 bool Open(bool WithLock
= true)
30 OpTextProgress
Prog(*_config
);
31 if (pkgCacheFile::Open(&Prog
,WithLock
) == false)
39 if (_config
->FindB("APT::Get::Print-URIs") == true)
44 CacheFile() : List(0) {};