Skip to content

Commit

Permalink
build: do not echo 'Removing...' if the files are to be kept
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Apr 3, 2023
1 parent 2891e01 commit ca5182d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/towncrier/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ def __main(
click.echo("Staging newsfile...", err=to_err)
_git.stage_newsfile(base_directory, news_file)

click.echo("Removing news fragments...", err=to_err)
if should_remove_fragment_files(
fragment_filenames,
answer_yes,
answer_keep,
):
click.echo("Removing news fragments...", err=to_err)
_git.remove_files(fragment_filenames)

click.echo("Done!", err=to_err)
Expand Down
1 change: 1 addition & 0 deletions src/towncrier/newsfragments/487.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not echo 'Removing...' if the files are to be kept

0 comments on commit ca5182d

Please sign in to comment.