Date: Thu, 24 Jan 2019 12:38:42 -0800 (PST) From: "Rodney W. Grimes" <freebsd@pdx.rh.CN85.dnsmgr.net> To: Ed Maste <emaste@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r343409 - head/usr.sbin/freebsd-update Message-ID: <201901242038.x0OKcgLH084810@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <201901241841.x0OIf07Y090351@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Author: emaste > Date: Thu Jan 24 18:41:00 2019 > New Revision: 343409 > URL: https://svnweb.freebsd.org/changeset/base/343409 > > Log: > freebsd-update: Stop installing empty component sets Thank you! > Submitted by: Gerald Aryeetey <aryeeteygerald_rogers.com> > Reported by: rgrimes > Reviewed by: delphij > MFC after: 1 month > Sponsored by: The FreeBSD Foundation > Differential Revision: https://reviews.freebsd.org/D18927 > > Modified: > head/usr.sbin/freebsd-update/freebsd-update.sh > > Modified: head/usr.sbin/freebsd-update/freebsd-update.sh > ============================================================================== > --- head/usr.sbin/freebsd-update/freebsd-update.sh Thu Jan 24 18:39:45 2019 (r343408) > +++ head/usr.sbin/freebsd-update/freebsd-update.sh Thu Jan 24 18:41:00 2019 (r343409) > @@ -2195,7 +2195,7 @@ upgrade_guess_components () { > sort -k 2,2 -t ' ' > compfreq.present > join -t ' ' -1 2 -2 2 compfreq.present compfreq.total | > while read S P T; do > - if [ ${P} -gt `expr ${T} / 2` ]; then > + if [ ${T} -ne 0 -a ${P} -gt `expr ${T} / 2` ]; then > echo ${S} > fi > done > comp.present > > -- Rod Grimes rgrimes@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901242038.x0OKcgLH084810>