summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/apt_pkgmodule.cc2
-rw-r--r--python/cache.cc6
-rw-r--r--python/depcache.cc4
3 files changed, 7 insertions, 5 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc
index a3916021..644827c3 100644
--- a/python/apt_pkgmodule.cc
+++ b/python/apt_pkgmodule.cc
@@ -21,7 +21,7 @@
#include <apt-pkg/tagfile.h>
#include <apt-pkg/md5.h>
#include <apt-pkg/sha1.h>
-#include <apt-pkg/sha256.h>
+#include <apt-pkg/sha2.h>
#include <apt-pkg/init.h>
#include <apt-pkg/pkgsystem.h>
#include <apt-pkg/orderlist.h>
diff --git a/python/cache.cc b/python/cache.cc
index 40782838..2fa556e1 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -329,7 +329,7 @@ static PyObject *PkgCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
if (pyCallbackInst == Py_None) {
OpProgress Prog;
- if (Cache->Open(Prog,false) == false)
+ if (Cache->Open(&Prog,false) == false)
return HandleErrors();
} else if(pyCallbackInst != 0) {
// sanity check for the progress object, see #497049
@@ -345,12 +345,12 @@ static PyObject *PkgCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
}
PyOpProgress progress;
progress.setCallbackInst(pyCallbackInst);
- if (Cache->Open(progress,false) == false)
+ if (Cache->Open(&progress,false) == false)
return HandleErrors();
}
else {
OpTextProgress Prog;
- if (Cache->Open(Prog,false) == false)
+ if (Cache->Open(&Prog,false) == false)
return HandleErrors();
}
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;