diff options
Diffstat (limited to 'python/pkgrecords.cc')
| -rw-r--r-- | python/pkgrecords.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pkgrecords.cc b/python/pkgrecords.cc index 0e00edcd..a53af394 100644 --- a/python/pkgrecords.cc +++ b/python/pkgrecords.cc @@ -44,7 +44,7 @@ static PyObject *PkgRecordsLookup(PyObject *Self,PyObject *Args) Struct.Last = &Struct.Records.Lookup(pkgCache::VerFileIterator(*Cache,Cache->VerFileP+Index)); // always return true (to make it consistent with the pkgsrcrecords object - return Py_BuildValue("i", 1); + return PyBool_FromLong(1); } static PyMethodDef PkgRecordsMethods[] = |
