Skip to content

Commit

Permalink
build: .copr/Makefile: Fix setting release_suffix
Browse files Browse the repository at this point in the history
Change-Id: Ib8e8deeca6ddbda02e3ba7dafef5b872d70d18b1
Signed-off-by: Yedidyah Bar David <didi@redhat.com>
  • Loading branch information
didib committed Aug 22, 2022
1 parent 0b425e1 commit 2641ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .copr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ git_cfg_safe:

srpm: installdeps git_cfg_safe
# Set SUFFIX to .git$HASH if we are on a -SNAPSHOT
$(eval SUFFIX=$(shell grep -E "<version" pom.xml | head -n1 | awk -F '[<>]' '/version/{print $3}' | grep -q -- -SNAPSHOT && echo .git$(git rev-parse --short HEAD)))
$(eval SUFFIX=$(shell grep -E "<version" pom.xml | head -n1 | awk -F '[<>]' '/version/{print $3}' | grep -q -- -SNAPSHOT && echo .git$$(git rev-parse --short HEAD)))
# changing the spec file as passing -D won't preserve the suffix when rebuilding in mock
sed "s:%{?release_suffix}:${SUFFIX}:" -i ovirt-engine.spec.in
mkdir -p tmp.repos/SOURCES
Expand Down

0 comments on commit 2641ec2

Please sign in to comment.