Bug 233988

Summary: freebsd-update: Improve progress output on terminals
Product: Base System Reporter: Thomas Hurst <tom>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Some People CC: cperciva, emaste, grahamperrin, koobs
Priority: --- Keywords: easy, needs-qa
Version: CURRENTFlags: koobs: mfc-stable12?
koobs: mfc-stable11?
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Initial patch against head/usr.sbin/freebsd-update none

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