Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 10:09:38 +0000 (UTC)
From:      Pietro Cerutti <gahr@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: r345320 - stable/12/usr.sbin/freebsd-update
Message-ID:  <201903201009.x2KA9csa083275@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr (ports committer)
Date: Wed Mar 20 10:09:38 2019
New Revision: 345320
URL: https://svnweb.freebsd.org/changeset/base/345320

Log:
  MFC r34505: freebsd-update: restore old exit code when no updates are available
  locally
  
  This unbreaks ezjail and iocell, which get into an endless loop trying to
  figure out how many times "freebsd-update install" needs to be called.
  
  PR:		229346
  Submitted by:	Mike Cole <mcole36 at gmail.com>
  Approved by:	bapt

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	Wed Mar 20 10:06:44 2019	(r345319)
+++ stable/12/usr.sbin/freebsd-update/freebsd-update.sh	Wed Mar 20 10:09:38 2019	(r345320)
@@ -818,6 +818,7 @@ install_check_params () {
 		echo "No updates are available to install."
 		if [ $ISFETCHED -eq 0 ]; then
 			echo "Run '$0 fetch' first."
+			exit 1
 		fi
 		exit 0
 	fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903201009.x2KA9csa083275>