From 313ddd969b7ca3b1fa4a1afcaddfaa0d72162a20 Mon Sep 17 00:00:00 2001 From: mulhern Date: Thu, 26 Oct 2023 10:42:48 -0400 Subject: [PATCH] Do not specify the version to create_archive.py Instead, allow create_archive.py to read the version from the package. Signed-off-by: mulhern --- .packit.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 64a5d7de28..6252e8be58 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -12,14 +12,14 @@ actions: post-upstream-clone: - "git clone https://github.com/stratis-storage/ci --depth=1 ../distro" - "mv ../distro/mockbuild_test/stratisd.spec ../distro/stratisd.spec" - create-archive: + - "cargo install cargo-version-util" - "cargo install cargo-vendor-filterer" - - "sh -c 'python3 ../distro/release_management/create_artifacts.py ../distro/ --pre-release --specfile-path=../distro/stratisd.spec stratisd $(rpmspec -q --srpm --qf %{Version} ../distro/stratisd.spec) --vendor-method=filtered'" + create-archive: + - "sh -c 'python3 ../distro/release_management/create_artifacts.py ../distro/ --pre-release --specfile-path=../distro/stratisd.spec stratisd --vendor-method=filtered'" fix-spec-file: - "echo 'skipping automatic fix-spec-file actions'" get-current-version: - # TODO: Figure out a way to get this info via cargo - - "rpmspec -q --srpm --qf %{Version}\n ../distro/stratisd.spec" + - "cargo version-util get-version" srpm_build_deps: - git