svn commit: r432859 - in head/sysutils/firstboot-pkgs: . files

Brad Davis brd at FreeBSD.org
Mon Jan 30 17:48:08 UTC 2017


Author: brd
Date: Mon Jan 30 17:48:06 2017
New Revision: 432859
URL: https://svnweb.freebsd.org/changeset/ports/432859

Log:
  sysutils/firstboot-pkgs: Loop through the list installing one at a time to
  handle missing pkgs in the repo.
  
  Reviewed by:	allanjude
  Approved by:	cperciva, bdrewery (implicit)

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	Mon Jan 30 16:44:13 2017	(r432858)
+++ head/sysutils/firstboot-pkgs/Makefile	Mon Jan 30 17:48:06 2017	(r432859)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	firstboot-pkgs
-PORTVERSION=	1.4
+PORTVERSION=	1.5
 CATEGORIES=	sysutils
 MASTER_SITES=	# none
 DISTFILES=	# none

Modified: head/sysutils/firstboot-pkgs/files/firstboot_pkgs.in
==============================================================================
--- head/sysutils/firstboot-pkgs/files/firstboot_pkgs.in	Mon Jan 30 16:44:13 2017	(r432858)
+++ head/sysutils/firstboot-pkgs/files/firstboot_pkgs.in	Mon Jan 30 17:48:06 2017	(r432859)
@@ -37,10 +37,10 @@ firstboot_pkgs_run()
 	fi
 
 	# Install requested packages, if any
-	if ! [ -z "$firstboot_pkgs_list" ]; then
-		env ASSUME_ALWAYS_YES=YES pkg install $firstboot_pkgs_list </dev/null |
+	for package in ${firstboot_pkgs_list}; do
+		env ASSUME_ALWAYS_YES=YES pkg install ${package} </dev/null |
 		    cat
-	fi
+	done
 
 	# Count rc.d scripts again
 	nscriptsn=`ls /usr/local/etc/rc.d | wc -l`


More information about the svn-ports-all mailing list