#66 fedpkg sources prints too many lines into terminal when there is no PTY
Closed: Fixed None Opened 7 years ago by ignatenkobrain.

https://github.com/rpm-software-management/ci-dnf-stack/issues/147

When we are doing fedpkg sources it prints 1km logs for downloading which is not good for readability.

Downloading libcomps-0.1.7.tar.gz

                                                                         0.3%
                                                                         0.3%
                                                                         0.7%
                                                                         0.7%
                                                                         1.2%
                                                                         1.2%
#                                                                        1.4%
#                                                                        1.4%
#                                                                        1.5%
#                                                                        1.5%

I guess fix should be like:

if sys.stdout.isatty():
    print("\r....")

in the https://pagure.io/rpkg/blob/master/f/src/pyrpkg/lookaside.py#_71

PR #67 has been merged. Close this issue.

Login to comment on this ticket.

Metadata