From 0e01e4e659cceb5ab37ac859d5180a0d299e82f2 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 28 Jul 2023 10:31:32 -0700 Subject: [PATCH] Use fXX-build in the koji-rawhide repo definition, not rawhide Per nirik, 'repos/rawhide' is just a symlink to 'repos/fXX-build' and this could possibly be part of our 404 problem. So let's try using fXX-build directly instead of the symlink. Signed-off-by: Adam Williamson --- lib/utils.pm | 4 ++-- tests/_live_build.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index ea889313..0c48ef38 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -581,8 +581,8 @@ sub _repo_setup_updates { disable_updates_repos(both => 0) if ($version > $currrel); # use the buildroot repo on Rawhide: see e.g. # https://pagure.io/fedora-ci/general/issue/376 for why - if (get_var("VERSION") eq get_var("RAWREL") && get_var("TEST") ne "support_server") { - assert_script_run 'printf "[koji-rawhide]\nname=koji-rawhide\nbaseurl=https://kojipkgs.fedoraproject.org/repos/rawhide/latest/' . $arch . '/\ncost=2000\nenabled=1\nmetadata_expire=30\ngpgcheck=0\n" > /etc/yum.repos.d/koji-rawhide.repo'; + if ($version eq get_var("RAWREL") && get_var("TEST") ne "support_server") { + assert_script_run 'printf "[koji-rawhide]\nname=koji-rawhide\nbaseurl=https://kojipkgs.fedoraproject.org/repos/f' . $version . '-build/latest/' . $arch . '/\ncost=2000\nenabled=1\nmetadata_expire=30\ngpgcheck=0\n" > /etc/yum.repos.d/koji-rawhide.repo'; } # set up the workaround repo setup_workaround_repo; diff --git a/tests/_live_build.pm b/tests/_live_build.pm index 72df90f2..bcd79dd7 100644 --- a/tests/_live_build.pm +++ b/tests/_live_build.pm @@ -55,7 +55,7 @@ sub run { $repos .= '\n[workarounds]\nname=Workarounds repo\nbaseurl=file:///mnt/workaroundsiso/workarounds_repo\nenabled=1\nmetadata_expire=3600\ngpgcheck=0\n' if (get_var("ISO_3")); # also the buildroot repo, for Rawhide if ($version eq $rawrel) { - $repos .= '\n[koji-rawhide]\nname=Buildroot repo\nbaseurl=https://kojipkgs.fedoraproject.org/repos/rawhide/latest/\$basearch/\nenabled=1\nmetadata_expire=3600\ngpgcheck=0\n'; + $repos .= '\n[koji-rawhide]\nname=Buildroot repo\nbaseurl=https://kojipkgs.fedoraproject.org/repos/f' . $version . '-build/latest/\$basearch/\nenabled=1\nmetadata_expire=3600\ngpgcheck=0\n'; } $repos .= '\"\"\"'; assert_script_run 'printf "' . $repos . '" >> /etc/mock/openqa.cfg'; @@ -78,7 +78,7 @@ sub run { assert_script_run 'echo "repo --name=workarounds --baseurl=file:///mnt/workaroundsiso/workarounds_repo" >> ' . $repoks if (get_var("ISO_3")); # and the buildroot repo, for Rawhide if ($version eq $rawrel) { - assert_script_run 'echo "repo --name=koji-rawhide --baseurl=https://kojipkgs.fedoraproject.org/repos/rawhide/latest/\$basearch/" >> ' . $repoks; + assert_script_run 'echo "repo --name=koji-rawhide --baseurl=https://kojipkgs.fedoraproject.org/repos/f' . $version . '-build/latest/\$basearch/" >> ' . $repoks; } # now flatten the kickstart assert_script_run "ksflatten -c fedora-live-${lcsubv}.ks -o openqa.ks";