Skip to content

Handle special cases of process-distgit's target#209

Open
HauserV wants to merge 2 commits into
fedora-infra:mainfrom
HauserV:process-distgit-target
Open

Handle special cases of process-distgit's target#209
HauserV wants to merge 2 commits into
fedora-infra:mainfrom
HauserV:process-distgit-target

Conversation

@HauserV

@HauserV HauserV commented Nov 19, 2024

Copy link
Copy Markdown

This PR proposes two minor convenience improvements to the way process-distgit handles its argument target:

  1. Until 25c8f40, 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.
  2. 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.

Backend and tests added in 25c8f40

Signed-off-by: Vojtěch Hauser <vojtech.hauser@t-mobile.cz>
Signed-off-by: Vojtěch Hauser <vojtech.hauser@t-mobile.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant