From 129f1e2196bd495c9afba77036f337675fa66940 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sun, 24 Sep 2023 07:25:31 -0700 Subject: [PATCH] update rss --- mangle/generators/rss.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mangle/generators/rss.py b/mangle/generators/rss.py index 0e5160f..5650e09 100644 --- a/mangle/generators/rss.py +++ b/mangle/generators/rss.py @@ -272,6 +272,10 @@ def main(options): print('repo data failure') sys.exit(1) + if options.disable_all_modules: + modobj = dnf.module.module_base.ModuleBase(dnfobj) + modobj.disable(['*']) + sack_query = dnfobj.sack.query().available() #recent = sack_query.filter(latest_per_arch=1) recent = dnfobj.get_recent(days=days) @@ -300,6 +304,8 @@ def main(options): help='List of architectures to care about') parser.add_argument('--config', type=str, default='', help='A dnf configuration to use if you do not want to use the default') + parser.add_argument('--disable-all-modules', action='store_true', + help='Disables all modules. Useful for getting newer than 8 data.') parser.add_argument('repoids', metavar='N', type=str, nargs='+') results = parser.parse_args()