summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-06-10 18:58:31 +0200
committerMichael Vogt <mvo@debian.org>2014-06-10 18:58:31 +0200
commit7164a34502048d23b5d079d26e2a019feaa0ff5a (patch)
treef0686ff6d80925c6e605190fa00864d32172a53e /python
parente575cea699b7ebbf4d3045f4131075f7d0e415e6 (diff)
downloadpython-apt-7164a34502048d23b5d079d26e2a019feaa0ff5a.tar.gz
libapt uses pkgSourceRecords::Step() too
Diffstat (limited to 'python')
-rw-r--r--python/pkgsrcrecords.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc
index 6f80731d..6ec4e63c 100644
--- a/python/pkgsrcrecords.cc
+++ b/python/pkgsrcrecords.cc
@@ -88,7 +88,7 @@ static PyObject *PkgSrcRecordsStep(PyObject *Self,PyObject *Args)
if (PyArg_ParseTuple(Args,"") == 0)
return 0;
- Struct.Last = (pkgSrcRecords::Parser*)Struct.Records->Next();
+ Struct.Last = (pkgSrcRecords::Parser*)Struct.Records->Step();
if (Struct.Last == 0) {
Struct.Records->Restart();
Py_INCREF(Py_None);
@@ -102,7 +102,7 @@ static PyMethodDef PkgSrcRecordsMethods[] =
{
{"lookup",PkgSrcRecordsLookup,METH_VARARGS,doc_PkgSrcRecordsLookup},
{"restart",PkgSrcRecordsRestart,METH_VARARGS,doc_PkgSrcRecordsRestart},
- {"step",PkgSrcRecordsNext,METH_VARARGS,doc_PkgSrcRecordsNext},
+ {"step",PkgSrcRecordsStep,METH_VARARGS,doc_PkgSrcRecordsStep},
{}
};