]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
packit: Switch to meson.version for the current version
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Feb 2025 11:01:53 +0000 (12:01 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 4 Mar 2025 14:45:13 +0000 (15:45 +0100)
(cherry picked from commit 6a558625162591b34f6daf7e8878d79f78e3e8be)

.packit.yml

index 697defd3e7248ceb2cafd81bf48fa447ce5fe912..37bf55a0cbcb4e5203f535c4331ed4e899dc95f1 100644 (file)
@@ -14,11 +14,7 @@ srpm_build_deps: []
 
 actions:
   get-current-version:
-    # Show the closest matching tag for the checked out revision, otherwise
-    # Packit tries to get the latest tag by creation date, which doesn't work
-    # well in the systemd-stable repo. We also need to sanitize it manually
-    # since "upstream_tag_template" defined above doesn't apply here.
-    - "bash -ec 'git describe --tags --abbrev=0 | cut -b 2-'"
+    - cat meson.version
 
   post-upstream-clone:
     # Use the Fedora Rawhide specfile