summaryrefslogtreecommitdiff
path: root/python/pkgmanager.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-11-22 11:52:23 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-11-22 11:52:23 +0000
commitf505ecbf86d6ab30208c579a5e25c819c3733d89 (patch)
treedc803bcb82c624f2481b9786fe6bae57c89034d1 /python/pkgmanager.cc
parent86fea3ed91794aa9537a3b197dbaac500b82f2d8 (diff)
downloadpython-apt-f505ecbf86d6ab30208c579a5e25c819c3733d89.tar.gz
* fixes in the acquire interface code (use CppPyObject with pkgAcquire* directly instead of using a PkgAcquireStruct)
Diffstat (limited to 'python/pkgmanager.cc')
-rw-r--r--python/pkgmanager.cc7
1 files changed, 3 insertions, 4 deletions
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 <apt-pkg/packagemanager.h>
#include <apt-pkg/pkgsystem.h>
#include <apt-pkg/sourcelist.h>
#include <apt-pkg/error.h>
-
+#include <apt-pkg/acquire.h>
#include <iostream>
@@ -30,11 +29,11 @@ static PyObject *PkgManagerGetArchives(PyObject *Self,PyObject *Args)
&PkgRecordsType, &recs) == 0)
return 0;
- PkgAcquireStruct &s_fetcher = GetCpp<PkgAcquireStruct>(fetcher);
+ pkgAcquire *s_fetcher = GetCpp<pkgAcquire*>(fetcher);
pkgSourceList *s_list = GetCpp<pkgSourceList*>(list);
PkgRecordsStruct &s_records = GetCpp<PkgRecordsStruct>(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));