summaryrefslogtreecommitdiff
path: root/python/pkgsrcrecords.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-07-27 15:00:12 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-07-27 15:00:12 +0200
commitaf398fcce8671bc864e4300c1b0bbeb07ab95aaf (patch)
treee89efbe87083941ab7a220c3a9a93f0e9f6df05c /python/pkgsrcrecords.cc
parent0b081c5451d6394618290cd9a5767d767d98b819 (diff)
parent8d79b99c1a3338e31e8def858cee3209824ae8bf (diff)
downloadpython-apt-af398fcce8671bc864e4300c1b0bbeb07ab95aaf.tar.gz
* merged with mainline
Diffstat (limited to 'python/pkgsrcrecords.cc')
-rw-r--r--python/pkgsrcrecords.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc
index abb29c74..5e04f5fc 100644
--- a/python/pkgsrcrecords.cc
+++ b/python/pkgsrcrecords.cc
@@ -96,8 +96,10 @@ static PyObject *PkgSrcRecordsAttr(PyObject *Self,char *Name)
*b != 0;
++b)
PyList_Append(List, CppPyString(*b));
-
return List; // todo
+ } else if (strcmp("Index",Name) == 0) {
+ const pkgIndexFile &tmp = Struct.Last->Index();
+ return CppOwnedPyObject_NEW<pkgIndexFile*>(Self,&PackageIndexFileType, (pkgIndexFile*)&tmp);
} else if (strcmp("Files",Name) == 0) {
PyObject *List = PyList_New(0);