--- checks.py 2021-12-08 13:28:22.892999715 -0800 +++ checks.py-temp 2021-12-08 13:54:34.743854376 -0800 @@ -243,12 +243,7 @@ # get output of a command to get all packages which are the source # of kmods kmod_pkgs_str, _ = run_subprocess( - ("repoquery --releasever={releasever} {setopt_arg} {repoids_args} -f /lib/modules/*.ko*").format( - releasever=system_info.releasever, - setopt_arg=setopt_arg, - repoids_args=repoquery_repoids_args, - ), - print_output=False, + (["repoquery", "--releasever=%s" % system_info.releasever, setopt_arg, repoquery_repoids_args, "-f", "/lib/modules/*.ko*"]),print_output=False, ) # from these packages we select only the latest one kmod_pkgs = get_most_recent_unique_kernel_pkgs(kmod_pkgs_str.rstrip("\n").split())