rpmmodule.c: Export a few additional RPMSENSE values

We want to see the RPMSENSE_SCRIPT values for use with SMART.  We also
want to see the MISSINGOK value so we can avoid recommended packages causing
failures.

Upstream-Status: Submitted [RPM5 maintainer]

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>

Index: rpm/python/rpmmodule.c
===================================================================
--- rpm.orig/python/rpmmodule.c
+++ rpm/python/rpmmodule.c
@@ -525,12 +525,15 @@ static int initModule(PyObject *m)
     REGISTER_ENUM(RPMSENSE_PREREQ);
     REGISTER_ENUM(RPMSENSE_PRETRANS);
     REGISTER_ENUM(RPMSENSE_INTERP);
+#else
+ #if defined(RPM_VENDOR_WINDRIVER) || defined(RPM_VENDOR_OE)
     REGISTER_ENUM(RPMSENSE_SCRIPT_PRE);
     REGISTER_ENUM(RPMSENSE_SCRIPT_POST);
     REGISTER_ENUM(RPMSENSE_SCRIPT_PREUN);
     REGISTER_ENUM(RPMSENSE_SCRIPT_POSTUN);
     REGISTER_ENUM(RPMSENSE_SCRIPT_VERIFY);
-#else
+    REGISTER_ENUM(RPMSENSE_MISSINGOK);
+ #endif
     REGISTER_ENUM(RPMSENSE_NOTEQUAL);
 #endif
     REGISTER_ENUM(RPMSENSE_FIND_REQUIRES);
