sigh, can't use get_release_number before defining it...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-08-15 12:00:26 -07:00
parent d7d3d40d83
commit 04b716329a

View File

@ -437,8 +437,8 @@ sub _repo_setup_updates {
upload_logs "/var/log/updatepkgnames.txt"; upload_logs "/var/log/updatepkgnames.txt";
# FIXME: workaround for broken lorax-29.29-1.fc29, remove when # FIXME: workaround for broken lorax-29.29-1.fc29, remove when
# FEDORA-2019-8a3aa00d5e goes stable # FEDORA-2019-8a3aa00d5e goes stable
my $relnum = get_release_number; my $version = get_var("VERSION");
if ($relnum == 29) { if ($version == 29) {
assert_script_run "bodhi updates download --updateid FEDORA-2019-8a3aa00d5e", 600; assert_script_run "bodhi updates download --updateid FEDORA-2019-8a3aa00d5e", 600;
} }
# create the repo metadata # create the repo metadata
@ -910,7 +910,7 @@ sub get_release_number {
my $rawrel = get_var("RAWREL", "Rawhide"); my $rawrel = get_var("RAWREL", "Rawhide");
return $rawrel if ($version eq "Rawhide"); return $rawrel if ($version eq "Rawhide");
return $version return $version
} }
sub tell_source { sub tell_source {
# This helper function identifies the Subvariant of the tested system. # This helper function identifies the Subvariant of the tested system.