summaryrefslogtreecommitdiff
path: root/python/apt_pkgmodule.cc
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.cc
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.cc')
-rw-r--r--python/apt_pkgmodule.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc
index 4e718ffa..92727b6f 100644
--- a/python/apt_pkgmodule.cc
+++ b/python/apt_pkgmodule.cc
@@ -488,6 +488,7 @@ extern "C" void initapt_pkg()
if (PyType_Ready(&PkgAcquireType) == -1) return;
if (PyType_Ready(&PackageIndexFileType) == -1) return;
if (PyType_Ready(&PkgManagerType) == -1) return;
+ if (PyType_Ready(&PkgSrcRecordsType) == -1) return;
// Initialize the module