diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-18 15:26:48 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-18 15:26:48 +0100 |
| commit | 4551baaf54faa1555b4fc40b9bf34beca8af60eb (patch) | |
| tree | f4a7e14b862733746312d83583a9abf0a3b99008 /python | |
| parent | 5de8e3d1ecd159d5c27e62264b794cc1124b14fa (diff) | |
| download | python-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.cc | 2 |
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); |
