From 69a3c876af74e2499b5068441b5d89ca53c3583a Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 4 May 2005 08:36:36 +0000 Subject: * more tests added * tests/cache.py: - test that iterates over all the cache and dependencies * tests/pkgrecords.py - test that iterates over all the pkgrecords * python/cache.cc - added a comment * python/pkgrecords.cc - return "True" from pkgRecord.Lookup() (to make it consistent with the PkgSrcRecords object) --- python/pkgrecords.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/pkgrecords.cc') diff --git a/python/pkgrecords.cc b/python/pkgrecords.cc index d446388b..7f5aa0e2 100644 --- a/python/pkgrecords.cc +++ b/python/pkgrecords.cc @@ -50,8 +50,9 @@ static PyObject *PkgRecordsLookup(PyObject *Self,PyObject *Args) // Do the lookup Struct.Last = &Struct.Records.Lookup(pkgCache::VerFileIterator(*Cache,Cache->VerFileP+Index)); - Py_INCREF(Py_None); - return HandleErrors(Py_None); + + // always return true (to make it consistent with the pkgsrcrecords object + return Py_BuildValue("i", 1); } static PyMethodDef PkgRecordsMethods[] = -- cgit v1.2.3