From e6a44dbbf9442f070d486e7dc67e9269bd142d4d Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 27 Apr 2023 15:06:55 +0300 Subject: 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. --- python/rpmmodule.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.1