From 0d616ec4ef49064412b27275dbbb1cb04b546fb5 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 23 Oct 2013 19:27:10 +0200 Subject: 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. --- python/depcache.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/depcache.cc') 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; -- cgit v1.2.3