From f505ecbf86d6ab30208c579a5e25c819c3733d89 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 22 Nov 2005 11:52:23 +0000 Subject: * fixes in the acquire interface code (use CppPyObject with pkgAcquire* directly instead of using a PkgAcquireStruct) --- python/pkgmanager.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'python/pkgmanager.cc') diff --git a/python/pkgmanager.cc b/python/pkgmanager.cc index ce6d35a8..bcd4c45b 100644 --- a/python/pkgmanager.cc +++ b/python/pkgmanager.cc @@ -8,14 +8,13 @@ #include "generic.h" #include "apt_pkgmodule.h" -#include "acquire.h" #include "pkgrecords.h" #include #include #include #include - +#include #include @@ -30,11 +29,11 @@ static PyObject *PkgManagerGetArchives(PyObject *Self,PyObject *Args) &PkgRecordsType, &recs) == 0) return 0; - PkgAcquireStruct &s_fetcher = GetCpp(fetcher); + pkgAcquire *s_fetcher = GetCpp(fetcher); pkgSourceList *s_list = GetCpp(list); PkgRecordsStruct &s_records = GetCpp(recs); - bool res = pm->GetArchives(&s_fetcher.fetcher, s_list, + bool res = pm->GetArchives(s_fetcher, s_list, &s_records.Records); return HandleErrors(Py_BuildValue("b",res)); -- cgit v1.2.3