Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2019 18:15:36 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r344801 - stable/12/usr.sbin/freebsd-update
Message-ID:  <201903051815.x25IFaMb035709@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Mar  5 18:15:35 2019
New Revision: 344801
URL: https://svnweb.freebsd.org/changeset/base/344801

Log:
  MFC r343409: freebsd-update: Stop installing empty component sets
  
  Submitted by:	Gerald Aryeetey <aryeeteygerald_rogers.com>
  Reported by:	rgrimes
  Reviewed by:	delphij
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/12/usr.sbin/freebsd-update/freebsd-update.sh
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- stable/12/usr.sbin/freebsd-update/freebsd-update.sh	Tue Mar  5 18:11:36 2019	(r344800)
+++ stable/12/usr.sbin/freebsd-update/freebsd-update.sh	Tue Mar  5 18:15:35 2019	(r344801)
@@ -2170,7 +2170,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?201903051815.x25IFaMb035709>