From 71c3bee4dd74ee1d98510f1948e9088aa0fb20e8 Mon Sep 17 00:00:00 2001 From: Petr Cervinka Date: Fri, 13 Dec 2024 11:32:18 +0100 Subject: [PATCH] kdump: Use http instead of ftp for debug repository Fix poo#170422: FTP service on openqa.suse.de is not available due to recent security changes and is better to use http for debug repository. --- lib/kdump_utils.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/kdump_utils.pm b/lib/kdump_utils.pm index 015fae31e3ac..dedb4f15a628 100644 --- a/lib/kdump_utils.pm +++ b/lib/kdump_utils.pm @@ -48,10 +48,11 @@ sub install_kernel_debuginfo { } sub get_repo_url_for_kdump_sle { - return join('/', $utils::OPENQA_FTP_URL, get_var('REPO_SLE_MODULE_BASESYSTEM_DEBUG')) + my $openqa_url = 'http://' . get_var('OPENQA_HOSTNAME', 'openqa.suse.de') . '/assets/repo'; + return join('/', $openqa_url, get_var('REPO_SLE_MODULE_BASESYSTEM_DEBUG')) if get_var('REPO_SLE_MODULE_BASESYSTEM_DEBUG') and is_sle('15+'); - return join('/', $utils::OPENQA_FTP_URL, get_var('REPO_SLES_DEBUG')) if get_var('REPO_SLES_DEBUG'); + return join('/', $openqa_url, get_var('REPO_SLES_DEBUG')) if get_var('REPO_SLES_DEBUG'); } sub prepare_for_kdump_sle {