17466879 mirror service instances don't cope with more than one publisher
authorTim Foster <tim.s.foster@oracle.com>
Tue, 24 Sep 2013 09:31:16 +1200
changeset 2953 14b0c7a0d211
parent 2951 e52b6ae3a4b2
child 2954 4b449f059c78
17466879 mirror service instances don't cope with more than one publisher
src/svc/svc-pkg-mirror
--- a/src/svc/svc-pkg-mirror	Mon Sep 23 11:05:02 2013 +0530
+++ b/src/svc/svc-pkg-mirror	Tue Sep 24 09:31:16 2013 +1200
@@ -281,6 +281,7 @@
 	# we want to pkgrecv from.
 	#
 	i=0
+	index=0
 	while [ $i -lt ${#publishers[@]} ]; do
 		pub=${publishers[$i]}
 		sslkey=$($PKG -R $ref_image publisher $pub \
@@ -291,7 +292,6 @@
 		    | $GREP -v None | $SED -e 's/.* //g')
 		$PKG -R $ref_image publisher -F tsv > /tmp/pkg.mirror.$$
 
-		index=0
 		#
 		# this function depends on the output of
 		# 'pkg publisher -F tsv'. It really ought to use