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 mailing list
Keywords: easy, needs-qa
Depends on:
Reported: 2018-12-13 18:17 UTC by Thomas Hurst
Modified: 2019-09-10 02:55 UTC (History)
2 users (show)

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

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.