From owner-svn-src-head@freebsd.org Thu Jan 24 20:38:45 2019 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 560BA14BDBEB; Thu, 24 Jan 2019 20:38:45 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5A4385F8B; Thu, 24 Jan 2019 20:38:44 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x0OKcgoq084811; Thu, 24 Jan 2019 12:38:42 -0800 (PST) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id x0OKcgLH084810; Thu, 24 Jan 2019 12:38:42 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201901242038.x0OKcgLH084810@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r343409 - head/usr.sbin/freebsd-update In-Reply-To: <201901241841.x0OIf07Y090351@repo.freebsd.org> To: Ed Maste Date: Thu, 24 Jan 2019 12:38:42 -0800 (PST) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: C5A4385F8B X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.95 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.953,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2019 20:38:45 -0000 > 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 > 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