When multi_progress_bar
finishes print new line automatically
#1805
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The last line of
multi_progress_bar
can look like:[2/2] Total 100% | 0.0 B/s | 20.0 B | 00m00s
or
http://localhost:43223/api_3/rpmrepo 100% | 72.0 KiB/s | 295.0 B | 00m00s
I don't think any client will ever want to append to that.
Instead of it needing to be printed by the client the
multi_progress_bar
automatically ends with a new line.This new line was missing on some places. For example in output of:
dnf copr enable rpmsoftwaremanagement/dnf-nightly
or
dnf5 rq --repofrompath=test,https://www.not-available-repo.com/ --repo test --setopt=skip_if_unavailable=0
There were also excessive new lines like in:
dnf5 remove htop -y &> out
Closes: #1792