From 87da816b47bf35cd5f5bf50e15b38f43adb1a23c Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Tue, 5 Sep 2023 02:35:07 -0700 Subject: [PATCH] update rss.py --- files/usr/libexec/rocky/rss.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/usr/libexec/rocky/rss.py b/files/usr/libexec/rocky/rss.py index e7396f6..03e6db8 100644 --- a/files/usr/libexec/rocky/rss.py +++ b/files/usr/libexec/rocky/rss.py @@ -191,7 +191,11 @@ def main(options): else: repoobj.enable() if options.module_hotfixes: - repoobj.set_or_append_opt_value('module_hotfixes', '1') + try: + repoobj.set_or_append_opt_value('module_hotfixes', '1') + except: + print('Warning: dnf library is too old to support setting values') + repoobj.load_metadata_other = True print('Getting repo data')