summaryrefslogtreecommitdiff
path: root/python/pkgrecords.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-05-04 08:36:36 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-05-04 08:36:36 +0000
commit69a3c876af74e2499b5068441b5d89ca53c3583a (patch)
treefad0d73c9c71a606a37fc5c9552aa56df48ab6f2 /python/pkgrecords.cc
parent52ecc81517a1fa9748d04f0c0d05ce8396233b71 (diff)
downloadpython-apt-69a3c876af74e2499b5068441b5d89ca53c3583a.tar.gz
* 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)
Diffstat (limited to 'python/pkgrecords.cc')
-rw-r--r--python/pkgrecords.cc5
1 files changed, 3 insertions, 2 deletions
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[] =