summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2023-04-27 15:06:55 +0300
committerPanu Matilainen <pmatilai@redhat.com>2023-04-28 12:57:21 +0300
commite6a44dbbf9442f070d486e7dc67e9269bd142d4d (patch)
treeb958c38a148dab6c951ac52b00fcb0b958eec54e
parent607e60bffef27a4abe22786e2adc4af2dd0a228e (diff)
downloadrpm-e6a44dbbf9442f070d486e7dc67e9269bd142d4d.tar.gz
Make the higher level file info selection flags available to Python
These disabler flags have little other purpose than optimizing cases where you know you only need a certain subset of files for large number of packages. Rather than expose all the individual flags, export just the per-operation level masks to Python.
-rw-r--r--python/rpmmodule.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c
index 4d32cdddc..cdf6ccf94 100644
--- a/python/rpmmodule.c
+++ b/python/rpmmodule.c
@@ -388,6 +388,13 @@ static int initModule(PyObject *m)
REGISTER_ENUM(RPMFILE_PUBKEY);
REGISTER_ENUM(RPMFILE_ARTIFACT);
+ REGISTER_ENUM(RPMFI_FLAGS_ERASE);
+ REGISTER_ENUM(RPMFI_FLAGS_INSTALL);
+ REGISTER_ENUM(RPMFI_FLAGS_VERIFY);
+ REGISTER_ENUM(RPMFI_FLAGS_QUERY);
+ REGISTER_ENUM(RPMFI_FLAGS_FILETRIGGER);
+ REGISTER_ENUM(RPMFI_FLAGS_ONLY_FILENAMES);
+
REGISTER_ENUM(RPMDEP_SENSE_REQUIRES);
REGISTER_ENUM(RPMDEP_SENSE_CONFLICTS);