X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6b2f7a60c3d7d22d1d6b0e300ef526d48ff20048..410327e1ee0fac0c28a95e45ea75f7359cc8dcb4:/apt-pkg/cachefile.h?ds=sidebyside diff --git a/apt-pkg/cachefile.h b/apt-pkg/cachefile.h index 63bc3de47..09d3ec267 100644 --- a/apt-pkg/cachefile.h +++ b/apt-pkg/cachefile.h @@ -20,10 +20,9 @@ #include #include +#include #include -class pkgPolicy; -class pkgSourceList; class pkgCacheFile { protected: @@ -65,6 +64,11 @@ class pkgCacheFile inline pkgPolicy* GetPolicy() { BuildPolicy(); return Policy; }; inline pkgSourceList* GetSourceList() { BuildSourceList(); return SrcList; }; + inline bool IsPkgCacheBuilt() const { return (Cache != NULL); }; + inline bool IsDepCacheBuilt() const { return (DCache != NULL); }; + inline bool IsPolicyBuilt() const { return (Policy != NULL); }; + inline bool IsSrcListBuilt() const { return (SrcList != NULL); }; + pkgCacheFile(); virtual ~pkgCacheFile(); };