Bug 1862007 - dnf history list output has a too long lines
Summary: dnf history list output has a too long lines
Keywords:
Status: CLOSED DUPLICATE of bug 1852577
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 32
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: Nicola Sella
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-30 06:52 UTC by Boyan Anastasov
Modified: 2020-10-26 18:01 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-26 18:01:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Boyan Anastasov 2020-07-30 06:52:07 UTC
Description of problem:
The output of dnf history list shows too long lines when redirected to file or piped to less:
dnf history list|less
or
dnf history list > file

The output is with long lines, and you need to scroll very much actually to see any output.

Version-Release number of selected component (if applicable):
dnf-4.2.23-1.fc32.noarch

How reproducible:
Run:
dnf history list - the output looks fine

Compare the output with
dnf history list|less
or
dnf history list > output_history.txt

Additional info:
You can workaround the problem with less, but it would be better to be like it was before (It probably changed around F32/color output maybe is the problem?).
dnf history list|less
and press -S, and then Page-Down/Page-Up to see the output

Comment 1 Nicola Sella 2020-10-26 18:01:02 UTC
There is a fix here [1] for a similar issue. The solution should fix redirection to `less` and to file.
I am closing the bug as duplicate. If the solution does not fit feel free to reopen it. 

[1] https://github.com/rpm-software-management/dnf/pull/1636

*** This bug has been marked as a duplicate of bug 1852577 ***


Note You need to log in before you can comment on or make changes to this bug.