From 4551baaf54faa1555b4fc40b9bf34beca8af60eb Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 18 Jul 2008 15:26:48 +0100 Subject: * python/pkgsrcrecords.cc: - add "Record" attribute to the PkgSrcRecord to access the full source record --- python/pkgsrcrecords.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc index 5e04f5fc..c698a925 100644 --- a/python/pkgsrcrecords.cc +++ b/python/pkgsrcrecords.cc @@ -89,6 +89,8 @@ static PyObject *PkgSrcRecordsAttr(PyObject *Self,char *Name) return CppPyString(Struct.Last->Maintainer()); else if (strcmp("Section",Name) == 0) return CppPyString(Struct.Last->Section()); + else if (strcmp("Record",Name) == 0) + return CppPyString(Struct.Last->AsStr()); else if (strcmp("Binaries",Name) == 0) { PyObject *List = PyList_New(0); -- cgit v1.2.3