summaryrefslogtreecommitdiff
path: root/python/depcache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/depcache.cc')
-rw-r--r--python/depcache.cc4
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;