diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-08-18 21:04:24 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-08-20 19:07:12 +0200 |
commit | ebf9009361cbee57147dac3f9ef4daa2a73a63e0 (patch) | |
tree | 7a1f95f04bfe1157a0102e7059fba1aee435c2fb /contrib/fedora/rpkg.macros | |
parent | 31031d20e26d981a9c70966f5e81d7bf071f9501 (diff) | |
download | passt-ebf9009361cbee57147dac3f9ef4daa2a73a63e0.tar passt-ebf9009361cbee57147dac3f9ef4daa2a73a63e0.tar.gz passt-ebf9009361cbee57147dac3f9ef4daa2a73a63e0.tar.bz2 passt-ebf9009361cbee57147dac3f9ef4daa2a73a63e0.tar.lz passt-ebf9009361cbee57147dac3f9ef4daa2a73a63e0.tar.xz passt-ebf9009361cbee57147dac3f9ef4daa2a73a63e0.tar.zst passt-ebf9009361cbee57147dac3f9ef4daa2a73a63e0.zip |
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 <rc040203@freenet.de>
Reported-by: Artur Frenszek-Iwicki <fedora@svgames.pl>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/fedora/rpkg.macros')
-rw-r--r-- | contrib/fedora/rpkg.macros | 4 |
1 files changed, 4 insertions, 0 deletions
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}" |