- inline operator pkgDepCache &() {return *Cache;};
- inline pkgDepCache *operator ->() {return Cache;};
- inline pkgDepCache &operator *() {return *Cache;};
- inline pkgDepCache::StateCache &operator [](pkgCache::PkgIterator const &I) {return (*Cache)[I];};
- inline unsigned char &operator [](pkgCache::DepIterator const &I) {return (*Cache)[I];};
-
- // Release the dpkg status lock
- inline void ReleaseLock() {Lock->Close();};
-
+ inline operator pkgCache &() {return *Cache;};
+ inline operator pkgCache *() {return Cache;};
+ inline operator pkgDepCache &() {return *DCache;};
+ inline operator pkgDepCache *() {return DCache;};
+ inline pkgDepCache *operator ->() {return DCache;};
+ inline pkgDepCache &operator *() {return *DCache;};
+ inline pkgDepCache::StateCache &operator [](pkgCache::PkgIterator const &I) {return (*DCache)[I];};
+ inline unsigned char &operator [](pkgCache::DepIterator const &I) {return (*DCache)[I];};
+
+ bool BuildCaches(OpProgress &Progress,bool WithLock = true);