Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 2015 21:17:50 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r285364 - user/cperciva/freebsd-update-build/scripts
Message-ID:  <201507102117.t6ALHoTl007323@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Fri Jul 10 21:17:49 2015
New Revision: 285364
URL: https://svnweb.freebsd.org/changeset/base/285364

Log:
  When initializing a new set of builds, INDEX-NEW will be empty.  When we
  filter out /boot/kernel/linker.hints from this empty file, we will be left
  with... an empty file.  Unfortunately, fgrep, having read no lines and
  produced no output, returns an exit status of 1, which sh -e interprets
  as an error.
  
  Add a || true to the fgrep added in r276160 in order to unbreak init
  builds.
  
  Pointy Hat to:	cperciva

Modified:
  user/cperciva/freebsd-update-build/scripts/build.subr

Modified: user/cperciva/freebsd-update-build/scripts/build.subr
==============================================================================
--- user/cperciva/freebsd-update-build/scripts/build.subr	Fri Jul 10 19:27:19 2015	(r285363)
+++ user/cperciva/freebsd-update-build/scripts/build.subr	Fri Jul 10 21:17:49 2015	(r285364)
@@ -900,7 +900,7 @@ stageworld () {
 		# Create publishable version
 		indexpublish < ${WORKDIR}/${M}.new		\
 		    | fgrep -v 'kernel|generic|/boot/kernel/linker.hints' \
-		    > ${WORKDIR}/${M}.new.pub
+		    > ${WORKDIR}/${M}.new.pub || true
 
 		# Copy to staging area
 		H=`sha256 -q ${WORKDIR}/${M}.new.pub`



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