diff options
author | pauln <devnull@localhost> | 2004-03-10 22:44:29 +0000 |
---|---|---|
committer | pauln <devnull@localhost> | 2004-03-10 22:44:29 +0000 |
commit | aeab20571904cd350fdecfe2238a4ff617bdcacb (patch) | |
tree | 8d2eaa4be12841a1dd7d42f41e32cc00119db851 /python/rpmmodule.c | |
parent | f557b1bda0f5a15d6030dd9464a6f352199da4f9 (diff) | |
download | rpm-aeab20571904cd350fdecfe2238a4ff617bdcacb.tar.gz rpm-aeab20571904cd350fdecfe2238a4ff617bdcacb.tar.bz2 rpm-aeab20571904cd350fdecfe2238a4ff617bdcacb.zip |
Initial rpm.spec implementation
CVS patchset: 7160
CVS date: 2004/03/10 22:44:29
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r-- | python/rpmmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 3bc20647d..f47da8672 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -22,6 +22,7 @@ #include "rpmrc-py.h" #include "rpmte-py.h" #include "rpmts-py.h" +#include "spec-py.h" #include "debug.h" @@ -189,6 +190,7 @@ void initrpm(void) if (PyType_Ready(&rpmte_Type) < 0) return; if (PyType_Ready(&rpmts_Type) < 0) return; + if (PyType_Ready(&spec_Type) < 0) return; #endif m = Py_InitModule3("rpm", rpmModuleMethods, rpm__doc__); @@ -239,6 +241,9 @@ void initrpm(void) Py_INCREF(&rpmts_Type); PyModule_AddObject(m, "ts", (PyObject *) &rpmts_Type); + + Py_INCREF(&spec_Type); + PyModule_AddObject(m, "spec", (PyObject *) &spec_Type); #else hdr_Type.ob_type = &PyType_Type; rpmal_Type.ob_type = &PyType_Type; @@ -249,6 +254,7 @@ void initrpm(void) rpmmi_Type.ob_type = &PyType_Type; rpmte_Type.ob_type = &PyType_Type; rpmts_Type.ob_type = &PyType_Type; + spec_Type.ob_type = &PyType_Type; #endif dict = PyDict_New(); |