Allow an option parameter rust2rpm -p /path/to/*-fix-metadata.diff to trigger a non-interactive mode: - If no such value is given, run the current workflow where the editor is open - If a file is given try to apply the patch with that file, and if it: - fails: exit 1. Do not open an editor - succeeds: Continue using that file as the *-fix-metadata.diff. Maybe the name can be checked to ensure it has the same *-fix-metadata.diff, or the contents can be copied to the equivalent file
rust2rpm -p /path/to/*-fix-metadata.diff
exit 1
*-fix-metadata.diff
Use-case: Automation for packit, allowing to bump version, build, etc. in a dist-git-like repo. Example, I use it for managing multiple rust packages that need to be submitted for review.
dist-git
Metadata Update from @decathorpe: - Issue assigned to decathorpe - Issue set to the milestone: v27.0 - Issue tagged with: feature
This came up today in discussion, rust2rpm --reuse-patch could be a syntactic sugar over this
rust2rpm --reuse-patch
This is indeed what I have implemented today, in commit https://pagure.io/fedora-rust/rust2rpm/c/f503789
Still needs testing, but should work as advertised.
Metadata Update from @decathorpe: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.