This PR proposes two minor convenience improvements to the way process-distgit handles its argument target:
Until https://github.com/fedora-infra/rpmautospec/commit/25c8f40bef4b2fb9e410023998cf97d5ab24483d, the command would always overwrite the original spec file. That commit introduced a new argument target, which made it possible to store the output elsewhere. This PR exposes the original behavior in the CLI, giving users the option to overwrite the spec file in-place.
If the target is a directory, the command copies the temporary file with the expanded spec into the directory as-is. The second improvement uses the original spec's name instead of the randomly generated temporary one.
This PR proposes two minor convenience improvements to the way
process-distgit
handles its argumenttarget
:target
, which made it possible to store the output elsewhere. This PR exposes the original behavior in the CLI, giving users the option to overwrite the spec file in-place.target
is a directory, the command copies the temporary file with the expanded spec into the directory as-is. The second improvement uses the original spec's name instead of the randomly generated temporary one.