summaryrefslogtreecommitdiff
path: root/python/apt_pkgmodule.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-14 22:14:10 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-14 22:14:10 +0200
commit3caa05aa8e295d338be4bfbe7fdd2e825a59d947 (patch)
treea2fc7347820381351123bcc5b6a61f2238cc825f /python/apt_pkgmodule.h
parent444b2afea3b58cc55fbf4b9deb6d20c4475c8fef (diff)
downloadpython-apt-3caa05aa8e295d338be4bfbe7fdd2e825a59d947.tar.gz
* python/pkgsrcrecords.cc: Use GetSet properties for PkgSrcRecordsType
This time, it is a bit more complicated because we have to raise an AttributeError when no package has been looked up.
Diffstat (limited to 'python/apt_pkgmodule.h')
-rw-r--r--python/apt_pkgmodule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/apt_pkgmodule.h b/python/apt_pkgmodule.h
index ea8e33df..d2631864 100644
--- a/python/apt_pkgmodule.h
+++ b/python/apt_pkgmodule.h
@@ -89,6 +89,7 @@ PyObject *GetPkgManager(PyObject *Self,PyObject *Args);
// PkgRecords Stuff
extern PyTypeObject PkgRecordsType;
+extern PyTypeObject PkgSrcRecordsType;
PyObject *GetPkgRecords(PyObject *Self,PyObject *Args);
PyObject *GetPkgSrcRecords(PyObject *Self,PyObject *Args);