From 04b716329a78f59e8ea3826717a9bf7144bebf99 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 15 Aug 2019 12:00:26 -0700 Subject: [PATCH] sigh, can't use get_release_number before defining it... Signed-off-by: Adam Williamson --- lib/utils.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index 8fc8e016..81282f4e 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -437,8 +437,8 @@ sub _repo_setup_updates { upload_logs "/var/log/updatepkgnames.txt"; # FIXME: workaround for broken lorax-29.29-1.fc29, remove when # FEDORA-2019-8a3aa00d5e goes stable - my $relnum = get_release_number; - if ($relnum == 29) { + my $version = get_var("VERSION"); + if ($version == 29) { assert_script_run "bodhi updates download --updateid FEDORA-2019-8a3aa00d5e", 600; } # create the repo metadata @@ -910,7 +910,7 @@ sub get_release_number { my $rawrel = get_var("RAWREL", "Rawhide"); return $rawrel if ($version eq "Rawhide"); return $version - } +} sub tell_source { # This helper function identifies the Subvariant of the tested system.