This is intended to fix https://bugzilla.redhat.com/show_bug.cgi?id=2387053 by throttling unnecessary terminal progress-bar updates.
Less significantly, but still somewhat usefully, it avoids setting up the progress bar callback at all when stdout is not a TTY.
I tested this locally in the sense that it doesn’t seem to break fedpkg upload, but I will have to wait until I have another large archive to upload to be sure that it fixes the problem.
This is intended to fix https://bugzilla.redhat.com/show_bug.cgi?id=2387053 by throttling unnecessary terminal progress-bar updates.
Less significantly, but still somewhat usefully, it avoids setting up the progress bar callback at all when stdout is not a TTY.
I tested this locally in the sense that it doesn’t seem to break
fedpkg upload, but I will have to wait until I have another large archive to upload to be sure that it fixes the problem.