summaryrefslogtreecommitdiff
path: root/python/pkgmanager.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-11-22 11:45:03 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-11-22 11:45:03 +0000
commit86fea3ed91794aa9537a3b197dbaac500b82f2d8 (patch)
tree34debb11b9d10d23da39ea362ea841fba669a8fe /python/pkgmanager.cc
parentc1ee07ec049974cf8a54160b52881404b6347f43 (diff)
downloadpython-apt-86fea3ed91794aa9537a3b197dbaac500b82f2d8.tar.gz
* python/sourcelist.cc cleaned up
Diffstat (limited to 'python/pkgmanager.cc')
-rw-r--r--python/pkgmanager.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/python/pkgmanager.cc b/python/pkgmanager.cc
index 133db755..ce6d35a8 100644
--- a/python/pkgmanager.cc
+++ b/python/pkgmanager.cc
@@ -9,11 +9,11 @@
#include "generic.h"
#include "apt_pkgmodule.h"
#include "acquire.h"
-#include "sourcelist.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 <iostream>
@@ -31,12 +31,11 @@ static PyObject *PkgManagerGetArchives(PyObject *Self,PyObject *Args)
return 0;
PkgAcquireStruct &s_fetcher = GetCpp<PkgAcquireStruct>(fetcher);
- PkgSourceListStruct &s_list = GetCpp<PkgSourceListStruct>(list);
+ pkgSourceList *s_list = GetCpp<pkgSourceList*>(list);
PkgRecordsStruct &s_records = GetCpp<PkgRecordsStruct>(recs);
- bool res = pm->GetArchives(&s_fetcher.fetcher,
- &s_list.List,
- &s_records.Records);
+ bool res = pm->GetArchives(&s_fetcher.fetcher, s_list,
+ &s_records.Records);
return HandleErrors(Py_BuildValue("b",res));
}