diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-05-04 08:36:36 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-05-04 08:36:36 +0000 |
| commit | 69a3c876af74e2499b5068441b5d89ca53c3583a (patch) | |
| tree | fad0d73c9c71a606a37fc5c9552aa56df48ab6f2 /python/pkgrecords.cc | |
| parent | 52ecc81517a1fa9748d04f0c0d05ce8396233b71 (diff) | |
| download | python-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.cc | 5 |
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[] = |
