From 84338bb9ac665162675c8209fd79e697323fc4a9 Mon Sep 17 00:00:00 2001 From: Christian Tosta <7252968+christiantosta@users.noreply.github.com> Date: Mon, 4 Aug 2025 12:12:30 -0300 Subject: [PATCH] Fix empty Release tag --- CPackLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CPackLists.txt b/CPackLists.txt index 1fbfe51..00d22e5 100644 --- a/CPackLists.txt +++ b/CPackLists.txt @@ -72,6 +72,8 @@ execute_process( "head -1 \"${CMAKE_CURRENT_SOURCE_DIR}/changelog.txt\" \ | grep -iPo '.*${CPACK_PACKAGE_VERSION}-\\K[\\d]' \ | tr -d '\\n' \ + | grep -P '\\d' \ + || echo -n 1 \ " OUTPUT_VARIABLE CPACK_RPM_PACKAGE_RELEASE )