Bug 233988 - freebsd-update: Improve progress output on terminals
Summary: freebsd-update: Improve progress output on terminals
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: easy, needs-qa
Depends on:
Blocks:
 
Reported: 2018-12-13 18:17 UTC by Thomas Hurst
Modified: 2023-10-01 20:57 UTC (History)
4 users (show)

See Also:
koobs: mfc-stable12?
koobs: mfc-stable11?


Attachments
Initial patch against head/usr.sbin/freebsd-update (2.37 KB, patch)
2018-12-13 18:17 UTC, Thomas Hurst
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Hurst 2018-12-13 18:17:50 UTC
Created attachment 200086 [details]
Initial patch against head/usr.sbin/freebsd-update

This patch replaces freebsd-update's "...1030....1040...." progress reporting with this:

    Fetching 8786 patches. 1030/8786 (11%)

A couple more dots in the middle wouldn't go amiss, but there's some odd conditional logic for them based on verbose level, and I'm not going to mess about with that too much until I've actually tested with them.

The old style remains if STDOUT isn't a tty, so users running it on a cronjob shouldn't see any change.
Comment 1 Ed Maste freebsd_committer freebsd_triage 2022-12-14 16:44:58 UTC
This would be a nice usability improvement
Comment 2 Ed Maste freebsd_committer freebsd_triage 2023-09-19 22:42:30 UTC
See also https://reviews.freebsd.org/D39761