+ return _error->Error(_("The list of sources could not be read."));
+
+ // Read the caches
+ bool Res = pkgMakeStatusCache(List,Progress,&Map,!WithLock);
+ Progress.Done();
+ if (Res == false)
+ return _error->Error(_("The package lists or status file could not be parsed or opened."));
+
+ /* This sux, remove it someday */
+ if (_error->empty() == false)
+ _error->Warning(_("You may want to run apt-get update to correct these problems"));
+
+ Cache = new pkgCache(Map);
+ if (_error->PendingError() == true)
+ return false;
+ return true;
+}
+ /*}}}*/
+// CacheFile::Open - Open the cache files, creating if necessary /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+bool pkgCacheFile::Open(OpProgress &Progress,bool WithLock)
+{
+ if (BuildCaches(Progress,WithLock) == false)
+ return false;