summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-07-18 15:26:48 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-07-18 15:26:48 +0100
commit4551baaf54faa1555b4fc40b9bf34beca8af60eb (patch)
treef4a7e14b862733746312d83583a9abf0a3b99008 /python
parent5de8e3d1ecd159d5c27e62264b794cc1124b14fa (diff)
downloadpython-apt-4551baaf54faa1555b4fc40b9bf34beca8af60eb.tar.gz
* python/pkgsrcrecords.cc:
- add "Record" attribute to the PkgSrcRecord to access the full source record
Diffstat (limited to 'python')
-rw-r--r--python/pkgsrcrecords.cc2
1 files changed, 2 insertions, 0 deletions
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);