fix RPM version parsing

This commit is contained in:
K. Isom 2024-02-05 22:18:46 +00:00
parent aff3b3b83e
commit a82f57725f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.25) cmake_minimum_required(VERSION 3.25)
project(sc3dev project(sc3dev
VERSION 1.1.2 VERSION 1.1.3
LANGUAGES CXX LANGUAGES CXX
HOMEPAGE_URL "https://git.wntrmute.dev/sc/sc3dev" HOMEPAGE_URL "https://git.wntrmute.dev/sc/sc3dev"
DESCRIPTION "") DESCRIPTION "")

View File

@ -55,7 +55,7 @@ endpointForPackage(std::string package)
const std::filesystem::path pkgAsPath(package); const std::filesystem::path pkgAsPath(package);
auto stem = pkgAsPath.stem(); auto stem = pkgAsPath.stem();
auto parts = scsl::scstring::SplitN(stem, "_", 3); auto parts = scsl::scstring::SplitN(stem, "-", 3);
if (parts.size() != 3) { if (parts.size() != 3) {
return ""; return "";
} }