From 0e161153e8d9164c23a5815733ca62ae2e5cef4f Mon Sep 17 00:00:00 2001 From: HuijingHei Date: Mon, 13 May 2024 14:08:27 +0800 Subject: [PATCH] Add the action `prepare_files` to generate the new rpm file As workaround for the issue that rust and packit are not currently compatible. Xerf to https://src.fedoraproject.org/rpms/rust-openssh-keys/pull-request/9 and https://issues.redhat.com/browse/COS-2776 --- .packit.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 96f4ba5d..8014fafb 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,10 +1,12 @@ # See the documentation for more information: # https://packit.dev/docs/configuration/ actions: - changelog-entry: - - bash -c 'echo "- New upstream release"' - post-upstream-clone: - - wget https://src.fedoraproject.org/rpms/rust-zincati/raw/rawhide/f/rust-zincati.spec + changelog-entry: + - bash -c 'echo "- New upstream release"' + post-upstream-clone: + - wget https://src.fedoraproject.org/rpms/rust-zincati/raw/rawhide/f/rust-zincati.spec + prepare-files: + - bash -c 'rust2rpm -s zincati $PACKIT_PROJECT_VERSION' specfile_path: rust-zincati.spec downstream_package_name: rust-zincati