Date: Thu, 24 Jan 2019 18:41:00 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r343409 - head/usr.sbin/freebsd-update Message-ID: <201901241841.x0OIf07Y090351@repo.freebsd.org>
next 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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901241841.x0OIf07Y090351>