From 7164a34502048d23b5d079d26e2a019feaa0ff5a Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 10 Jun 2014 18:58:31 +0200 Subject: libapt uses pkgSourceRecords::Step() too --- python/pkgsrcrecords.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') 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}, {} }; -- cgit v1.2.3