From 146e41cca5dd430692619a47cfd2169925a726ed Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 26 Jun 2024 10:56:23 -0700 Subject: [PATCH] Install python3-dnf before running updvercheck.py ...when we're not in an atomic (canned) env, anyway. If we are, we'll rely on it already being there (as previously ensured by an earlier commit). Signed-off-by: Adam Williamson --- lib/utils.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index 4ab6216c..d95c50a5 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -1283,6 +1283,8 @@ sub advisory_check_nonmatching_packages { # for debugging, may as well always upload these, can't hurt anything upload_logs "/tmp/installedupdatepkgs.txt", failok => 1; upload_logs "/mnt/updatepkgs.txt", failok => 1; + # ensure python3-dnf is present for the check script + assert_script_run 'dnf -y install python3-dnf' unless (get_var("CANNED")); # download the check script and run it assert_script_run 'curl --retry-delay 10 --max-time 30 --retry 5 -o updvercheck.py https://pagure.io/fedora-qa/os-autoinst-distri-fedora/raw/main/f/updvercheck.py', timeout => 180; my $advisory = get_var("ADVISORY");