From ebf9009361cbee57147dac3f9ef4daa2a73a63e0 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 18 Aug 2022 21:04:24 +0200 Subject: fedora: Change source URL to HEAD link with explicit commit SHA This is required as Fedora doesn't accept a temporary pointer to a source URL. Reported-by: Ralf Corsepius Reported-by: Artur Frenszek-Iwicki Signed-off-by: Stefano Brivio --- contrib/fedora/rpkg.macros | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/fedora/rpkg.macros') diff --git a/contrib/fedora/rpkg.macros b/contrib/fedora/rpkg.macros index c9ba03d..2032034 100644 --- a/contrib/fedora/rpkg.macros +++ b/contrib/fedora/rpkg.macros @@ -15,6 +15,10 @@ function git_version { printf "0.git.%s.%s" "$(date -u -I | tr - _)" "$(git rev-parse --short HEAD)" } +function git_head { + git rev-parse HEAD +} + function passt_git_changelog_entry { __from="${2}" __to="${1}" -- cgit v1.2.3