summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-02-11 10:19:28 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-02-11 10:19:28 +0100
commit8295c8e578cb08ac3fe190658c031d5c8ac7b95b (patch)
treede1a840ba1607646116049e54a36de95a80a0790
parentfd183f637afc8786991782d2135f8885c8490fc2 (diff)
downloadpython-apt-8295c8e578cb08ac3fe190658c031d5c8ac7b95b.tar.gz
* python/pkgrecords.cc:
- export the Homepage field
-rw-r--r--debian/changelog2
-rw-r--r--python/pkgrecords.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index e3d4e109..08fb40f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ python-apt (0.7.5) UNRELEASED; urgency=low
* use the new CacheFile::ListUpdate() code
* add example in doc/examples/update.py
+ * python/pkgrecords.cc:
+ - export the Homepage field
* python/tar.cc:
- fix .lzma extraction (thanks to bigjools)
diff --git a/python/pkgrecords.cc b/python/pkgrecords.cc
index 466a2f30..93bc54d9 100644
--- a/python/pkgrecords.cc
+++ b/python/pkgrecords.cc
@@ -77,6 +77,8 @@ static PyObject *PkgRecordsAttr(PyObject *Self,char *Name)
return CppPyString(Struct.Last->LongDesc());
else if (strcmp("Name",Name) == 0)
return CppPyString(Struct.Last->Name());
+ else if (strcmp("Homepage",Name) == 0)
+ return CppPyString(Struct.Last->Homepage());
else if (strcmp("Record", Name) == 0)
{
const char *start, *stop;