Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 2014 19:02:34 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r368591 - in head/sysutils/firstboot-pkgs: . files
Message-ID:  <201409191902.s8JJ2Ye7084245@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Fri Sep 19 19:02:33 2014
New Revision: 368591
URL: http://svnweb.freebsd.org/changeset/ports/368591
QAT: https://qat.redports.org/buildarchive/r368591/

Log:
  Nominate myself for the useful-use-of-cat award.
  
  pkg detects if its stdout is a terminal and prints many 'done%' lines,
  which are useful for interactive use on modern terminals, but not so
  useful on a serial console; piping through cat silences these.

Modified:
  head/sysutils/firstboot-pkgs/Makefile
  head/sysutils/firstboot-pkgs/files/firstboot_pkgs.in

Modified: head/sysutils/firstboot-pkgs/Makefile
==============================================================================
--- head/sysutils/firstboot-pkgs/Makefile	Fri Sep 19 18:47:56 2014	(r368590)
+++ head/sysutils/firstboot-pkgs/Makefile	Fri Sep 19 19:02:33 2014	(r368591)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	firstboot-pkgs
-PORTVERSION=	1.3
+PORTVERSION=	1.4
 CATEGORIES=	sysutils
 MASTER_SITES=	# none
 DISTFILES=	# none

Modified: head/sysutils/firstboot-pkgs/files/firstboot_pkgs.in
==============================================================================
--- head/sysutils/firstboot-pkgs/files/firstboot_pkgs.in	Fri Sep 19 18:47:56 2014	(r368590)
+++ head/sysutils/firstboot-pkgs/files/firstboot_pkgs.in	Fri Sep 19 19:02:33 2014	(r368591)
@@ -32,12 +32,14 @@ firstboot_pkgs_run()
 
 	# Bootstrap if necessary
 	if ! pkg -N 2>/dev/null; then
-		env ASSUME_ALWAYS_YES=YES pkg bootstrap
+		env ASSUME_ALWAYS_YES=YES pkg bootstrap |
+		    cat
 	fi
 
 	# Install requested packages, if any
 	if ! [ -z "$firstboot_pkgs_list" ]; then
-		env ASSUME_ALWAYS_YES=YES pkg install $firstboot_pkgs_list </dev/null
+		env ASSUME_ALWAYS_YES=YES pkg install $firstboot_pkgs_list </dev/null |
+		    cat
 	fi
 
 	# Count rc.d scripts again



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