#278 RFE: Non-interractive `rust2rpm -p`
Closed: Fixed 6 months ago by decathorpe. Opened a year ago by lecris.

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

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.


Metadata Update from @decathorpe:
- Issue assigned to decathorpe
- Issue set to the milestone: v27.0
- Issue tagged with: feature

a year ago

This came up today in discussion, rust2rpm --reuse-patch could be a syntactic sugar over this

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)

6 months ago

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #279 Closed 6 months ago