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 | |
| parent | 5de8e3d1ecd159d5c27e62264b794cc1124b14fa (diff) | |
| download | python-apt-4551baaf54faa1555b4fc40b9bf34beca8af60eb.tar.gz | |
* python/pkgsrcrecords.cc:
- add "Record" attribute to the PkgSrcRecord to access the
full source record
| -rw-r--r-- | debian/changelog | 3 | ||||
| -rw-r--r-- | po/python-apt.pot | 2 | ||||
| -rw-r--r-- | python/pkgsrcrecords.cc | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 27004cfa..78af5f6d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,9 @@ python-apt (0.7.7) unstable; urgency=low - add tests for the hashsum code * apt/package.py: - add "isAutoRemovable()" method + * python/pkgsrcrecords.cc: + - add "Record" attribute to the PkgSrcRecord to access the + full source record -- Michael Vogt <mvo@debian.org> Fri, 04 Jul 2008 19:53:28 +0200 diff --git a/po/python-apt.pot b/po/python-apt.pot index c8c93668..7125757c 100644 --- a/po/python-apt.pot +++ b/po/python-apt.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-07-04 20:08+0200\n" +"POT-Creation-Date: 2008-07-18 15:22+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" 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); |
