public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Julian Sikorski <belegdol@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/AusweisApp2] f45: Fix application claiming to be beta
Date: Thu, 08 Oct 2026 15:45:36 GMT [thread overview]
Message-ID: <179147433608.1.17903928411095448351.rpms-AusweisApp2-e1bc1be49918@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/AusweisApp2
Branch : f45
Commit : e1bc1be499185bb30106f4a8322fb5212c764cc3
Author : Julian Sikorski <belegdol@fedoraproject.org>
Date : 2026-10-08T17:42:31+02:00
Stats : +150/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/AusweisApp2/c/e1bc1be499185bb30106f4a8322fb5212c764cc3?branch=f45
Log:
Fix application claiming to be beta
---
diff --git a/version.patch b/version.patch
new file mode 100644
index 0000000..79a8012
--- /dev/null
+++ b/version.patch
@@ -0,0 +1,150 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -138,6 +138,7 @@ endif()
+
+ include(Tools)
+ include(DVCS)
++GET_DVCS_INFO(${CMAKE_SOURCE_DIR})
+ add_subdirectory(docs)
+
+ include(Messages)
+diff --git a/ci/runner/Script.cmake b/ci/runner/Script.cmake
+--- a/ci/runner/Script.cmake
++++ b/ci/runner/Script.cmake
+@@ -164,6 +164,7 @@ macro(FETCH_VERSION)
+ PROPAGATE_PARAM(USE_APPSTORE_PROFILE)
+ include(Version)
+ include(DVCS)
++ GET_DVCS_INFO(${CMAKE_SOURCE_DIR})
+ list(POP_BACK CMAKE_MODULE_PATH)
+
+ set(BRANCH ${dvcs_branch})
+diff --git a/cmake/DVCS.cmake b/cmake/DVCS.cmake
+--- a/cmake/DVCS.cmake
++++ b/cmake/DVCS.cmake
+@@ -41,52 +41,59 @@ function(DVCS_CALL _name ${ARGN})
+ endfunction()
+
+
+-macro(GET_DVCS_INFO)
+- set(USE_ARTIFACT_DEV_VERSION ON)
++macro(GET_DVCS_INFO _source_dir)
++ option(ENABLE_DVCS "Check consistency of version/tag and get additional revision data" ON)
++ if(ENABLE_DVCS)
++ FIND_DVCS(${_source_dir})
++ endif()
++
++ if(DVCS_FOUND)
++ set(USE_ARTIFACT_DEV_VERSION ON)
+
+- if(DEFINED PROJECT_VERSION)
+- if(HG_FOUND)
+- DVCS_CALL("tag" id -t)
+- elseif(GIT_FOUND)
+- DVCS_CALL("tag" tag -l --points-at HEAD)
+- endif()
+- if(NOT "${dvcs_tag}" STREQUAL "tip" AND NOT "${dvcs_tag}" STREQUAL "" AND NOT "${dvcs_tag}" STREQUAL "undefined")
+- if(NOT dvcs_tag STREQUAL PROJECT_VERSION)
+- message(FATAL_ERROR "DVCS Tag and defined PROJECT_VERSION is not equal")
++ if(DEFINED PROJECT_VERSION)
++ if(HG_FOUND)
++ DVCS_CALL("tag" id -t)
++ elseif(GIT_FOUND)
++ DVCS_CALL("tag" tag -l --points-at HEAD)
+ endif()
+- set(USE_ARTIFACT_DEV_VERSION OFF)
+- else()
+- if(HG_FOUND)
+- DVCS_EXECUTE(dvcs_distance log -r ${PROJECT_VERSION}::. --template 1)
+- string(LENGTH "${dvcs_distance}" dvcs_distance)
+- message(STATUS "DVCS distance: ${dvcs_distance}")
+- elseif(GIT_FOUND)
+- DVCS_CALL("distance" rev-list --count ${PROJECT_VERSION}...HEAD)
++ if(NOT "${dvcs_tag}" STREQUAL "tip" AND NOT "${dvcs_tag}" STREQUAL "" AND NOT "${dvcs_tag}" STREQUAL "undefined")
++ if(NOT dvcs_tag STREQUAL PROJECT_VERSION)
++ message(FATAL_ERROR "DVCS Tag and defined PROJECT_VERSION is not equal")
++ endif()
++ set(USE_ARTIFACT_DEV_VERSION OFF)
++ else()
++ if(HG_FOUND)
++ DVCS_EXECUTE(dvcs_distance log -r ${PROJECT_VERSION}::. --template 1)
++ string(LENGTH "${dvcs_distance}" dvcs_distance)
++ message(STATUS "DVCS distance: ${dvcs_distance}")
++ elseif(GIT_FOUND)
++ DVCS_CALL("distance" rev-list --count ${PROJECT_VERSION}...HEAD)
++ endif()
+ endif()
+ endif()
+- endif()
+
+- if(HG_FOUND)
+- DVCS_CALL("branch" branch)
+- elseif(GIT_FOUND)
+- DVCS_CALL("branch" rev-parse --abbrev-ref HEAD)
+- endif()
++ if(HG_FOUND)
++ DVCS_CALL("branch" branch)
++ elseif(GIT_FOUND)
++ DVCS_CALL("branch" rev-parse --abbrev-ref HEAD)
++ endif()
+
+- if(HG_FOUND)
+- DVCS_CALL("revision" id -i)
+- elseif(GIT_FOUND)
+- DVCS_CALL("revision" rev-parse --verify --short HEAD)
+- endif()
++ if(HG_FOUND)
++ DVCS_CALL("revision" id -i)
++ elseif(GIT_FOUND)
++ DVCS_CALL("revision" rev-parse --verify --short HEAD)
++ endif()
+
+- if(HG_FOUND)
+- DVCS_CALL("phase" log -r . -T {phase})
+- if(DEFINED dvcs_phase)
+- if("${dvcs_phase}" STREQUAL "public")
+- if("${dvcs_revision}" MATCHES "\\+")
+- set(dvcs_phase "draft")
+- message(STATUS "DVCS phase: ${dvcs_phase} (override)")
+- else()
+- unset(dvcs_phase)
++ if(HG_FOUND)
++ DVCS_CALL("phase" log -r . -T {phase})
++ if(DEFINED dvcs_phase)
++ if("${dvcs_phase}" STREQUAL "public")
++ if("${dvcs_revision}" MATCHES "\\+")
++ set(dvcs_phase "draft")
++ message(STATUS "DVCS phase: ${dvcs_phase} (override)")
++ else()
++ unset(dvcs_phase)
++ endif()
+ endif()
+ endif()
+ endif()
+@@ -142,11 +149,3 @@ macro(GET_DVCS_INFO)
+ endif()
+ endif()
+ endmacro()
+-
+-FIND_DVCS(${CMAKE_SOURCE_DIR})
+-if(DVCS_FOUND)
+- option(ENABLE_DVCS "Check consistency of version/tag and get additional revision data" true)
+- if(ENABLE_DVCS)
+- GET_DVCS_INFO()
+- endif()
+-endif()
+diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt
+--- a/libs/CMakeLists.txt
++++ b/libs/CMakeLists.txt
+@@ -855,9 +855,8 @@ endif()
+
+ string(TIMESTAMP stamp "%Y-%m-%d")
+ set(IDENTIFIER ${stamp})
+-FIND_DVCS(${PROJECT_SOURCE_DIR}/..)
++GET_DVCS_INFO(${PROJECT_SOURCE_DIR}/..)
+ if(DVCS_FOUND)
+- GET_DVCS_INFO()
+ list(APPEND LIBS_ID_SALT ${dvcs_branch})
+
+ if(DEFINED dvcs_phase)
next reply other threads:[~2026-10-08 15:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-08 15:45 Julian Sikorski [this message]
2026-10-08 15:45 [rpms/AusweisApp2] f45: Fix application claiming to be beta Julian Sikorski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179147433608.1.17903928411095448351.rpms-AusweisApp2-e1bc1be49918@fedoraproject.org \
--to=belegdol@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox