Skip to content

Commit 6e0d615

Browse files
authored
Merge pull request fedora-iot#160 from pcdubs/fix-packit
fix: create vendor tarball during propose_downstream
2 parents 2eeac08 + b36cb97 commit 6e0d615

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.packit.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ actions:
3636
- "sed -i '/^License:/a\\%global debug_package %{nil}' greenboot-rs.spec"
3737
- bash -c "git config user.name 'Packit Build' || true"
3838
- bash -c "git config user.email 'packit@fedoraproject.org' || true"
39+
post-modifications:
40+
- |
41+
bash -exc '
42+
cargo vendor vendor
43+
tar -cJf "greenboot-rs-${PACKIT_PROJECT_VERSION}-vendor-patched.tar.xz" vendor
44+
rm -rf vendor
45+
if [ -n "${PACKIT_DOWNSTREAM_REPO}" ]; then
46+
cp "greenboot-rs-${PACKIT_PROJECT_VERSION}-vendor-patched.tar.xz" "${PACKIT_DOWNSTREAM_REPO}/"
47+
fi
48+
'
3949
4050
jobs:
4151
- job: copr_build

0 commit comments

Comments
 (0)