Browse Source

Switch away from the now deprecated methods for Cache building

debian/1.8.y
David Kalnischkies 12 years ago
parent
commit
ea4b220b1b
  1. 2
      apt-inst/deb/dpkgdb.cc
  2. 3
      cmdline/apt-extracttemplates.cc
  3. 4
      cmdline/apt-get.cc

2
apt-inst/deb/dpkgdb.cc

@ -142,7 +142,7 @@ bool debDpkgDB::ReadyPkgCache(OpProgress &Progress)
CacheMap = 0;
}
if (pkgMakeOnlyStatusCache(Progress,&CacheMap) == false)
if (pkgCacheGenerator::MakeOnlyStatusCache(&Progress,&CacheMap) == false)
return false;
Cache->DropProgress();

3
cmdline/apt-extracttemplates.cc

@ -296,8 +296,7 @@ bool Go(CommandLine &CmdL)
MMap *Map = 0;
pkgSourceList List;
List.ReadMainList();
OpProgress Prog;
pkgMakeStatusCache(List,Prog,&Map,true);
pkgCacheGenerator::MakeStatusCache(List,NULL,&Map,true);
if (Map == 0)
return false;
DebFile::Cache = new pkgCache(Map);

4
cmdline/apt-get.cc

@ -91,14 +91,14 @@ class CacheFile : public pkgCacheFile
bool BuildCaches(bool WithLock = true)
{
OpTextProgress Prog(*_config);
if (pkgCacheFile::BuildCaches(Prog,WithLock) == false)
if (pkgCacheFile::BuildCaches(&Prog,WithLock) == false)
return false;
return true;
}
bool Open(bool WithLock = true)
{
OpTextProgress Prog(*_config);
if (pkgCacheFile::Open(Prog,WithLock) == false)
if (pkgCacheFile::Open(&Prog,WithLock) == false)
return false;
Sort();

Loading…
Cancel
Save