From c38e843ffc957893770301432146c1e6a86c8ce7 Mon Sep 17 00:00:00 2001 From: Lubos Kocman Date: Wed, 24 Jan 2024 15:42:06 +0100 Subject: [PATCH] make_obs_url: fix platform for newer Leap releases - fixes boo#1219148 --- src/utils/misc.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils/misc.cc b/src/utils/misc.cc index 5b5eb8e461..7cd74c5ec0 100644 --- a/src/utils/misc.cc +++ b/src/utils/misc.cc @@ -556,7 +556,8 @@ Url make_obs_url( const std::string & obsuri ) if ( platform == "openSUSE" ) { if ( pdata.productline() == "Leap" ) - platform += "_Leap_$releasever"; + // openSUSE Leap 15.3+ uses simply "15.X" as a reference to the codestream + platform = "$releasever"; else if ( str::containsCI( pdata.summary(), "Tumbleweed" ) ) platform += "_Tumbleweed"; else @@ -569,8 +570,8 @@ Url make_obs_url( const std::string & obsuri ) } else if ( platform == "Leap" && pdata.vendor() == "openSUSE" ) { - // bsc#1187425 Hotfix - platform = "openSUSE_Leap_$releasever"; + // openSUSE Leap 15.3+ uses simply "15.X" as a reference to the codestream + platform = "$releasever"; } else platform += "_$releasever";