diff options
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r-- | python/rpmmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 9897868b8..1038dc5b8 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -26,6 +26,7 @@ #include "rpmfts-py.h" #include "rpmfi-py.h" #include "rpmmi-py.h" +#include "rpmmpw-py.h" #include "rpmrc-py.h" #include "rpmte-py.h" #include "rpmts-py.h" @@ -179,6 +180,7 @@ void initrpm(void) if (PyType_Ready(&rpmfts_Type) < 0) return; if (PyType_Ready(&rpmfi_Type) < 0) return; if (PyType_Ready(&rpmmi_Type) < 0) return; + if (PyType_Ready(&mpw_Type) < 0) return; rpmrc_Type.tp_base = &PyDict_Type; if (PyType_Ready(&rpmrc_Type) < 0) return; @@ -209,6 +211,9 @@ void initrpm(void) Py_INCREF(&hdr_Type); PyModule_AddObject(m, "hdr", (PyObject *) &hdr_Type); + Py_INCREF(&mpw_Type); + PyModule_AddObject(m, "mpw", (PyObject *) &mpw_Type); + Py_INCREF(&rpmal_Type); PyModule_AddObject(m, "al", (PyObject *) &rpmal_Type); |