Skip to content

Commit

Permalink
make_obs_url fix platform for newer Leap releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lkocman committed Jan 24, 2024
1 parent 5a754be commit 0b2f322
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/misc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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";
Expand Down

0 comments on commit 0b2f322

Please sign in to comment.