diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-10-23 19:27:10 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-10-23 19:27:10 +0200 |
| commit | 0d616ec4ef49064412b27275dbbb1cb04b546fb5 (patch) | |
| tree | 1863e5920669e737632f871a4229cbc3d0369c6d /python/depcache.cc | |
| parent | 0033e9b728a553bff0caa81d4c500532d5ba9ca1 (diff) | |
| download | python-apt-0d616ec4ef49064412b27275dbbb1cb04b546fb5.tar.gz | |
python/*.cc: Get rid of the easy-to-replace deprecated APT functions
We cannot get rid of the InstallProtect and StrToTime calls for backwards
compatibility, but let's drop the others.
Diffstat (limited to 'python/depcache.cc')
| -rw-r--r-- | python/depcache.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/depcache.cc b/python/depcache.cc index acd41a85..9f4b91b4 100644 --- a/python/depcache.cc +++ b/python/depcache.cc @@ -89,9 +89,11 @@ static PyObject *PkgDepCacheCommit(PyObject *Self,PyObject *Args) PyFetchProgress progress; progress.setCallbackInst(pyFetchProgressInst); - pkgAcquire Fetcher(&progress); + pkgAcquire Fetcher; pkgPackageManager *PM; PM = _system->CreatePM(depcache); + + Fetcher.Setup(&progress); if(PM->GetArchives(&Fetcher, &List, &Recs) == false || _error->PendingError() == true) { std::cerr << "Error in GetArchives" << std::endl; |
