[PC-BSD Commits] r12220 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Mon Aug 22 07:07:45 PDT 2011


Author: kris
Date: 2011-08-22 07:07:44 -0700 (Mon, 22 Aug 2011)
New Revision: 12220

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Add some sleep statements to warn off the dreaded fetch "Protocol error"



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-08-22 13:46:45 UTC (rev 12219)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-08-22 14:07:44 UTC (rev 12220)
@@ -4711,6 +4711,9 @@
 	mv "${_tmpPbiIndex}" "${_pbiIndex}" >/dev/null 2>/dev/null
 	date +%s > ${_pbiIndexTime}
 
+	# Wait a sec
+ 	sleep 1
+
 	# Now check for an optional meta file update
 	fetch -o "${_tmpPbiMeta}.bz2" "${_upURL}/${PBI_METAUPFILE}.bz2" >/dev/null 2>/dev/null
 	if [ "$?" = "0" ] ; then
@@ -4759,6 +4762,9 @@
 		# Now fetch the file
 		sFile="${PBI_DBICONDIR}/${_repoMd5}-${iName}.${ext}"
 		fetch -o "${sFile}" "${aIcon}" >/dev/null 2>/dev/null
+		
+		# Wait a sec
+		sleep 1
 
 	done < ${_repoMeta}
 }
@@ -5072,6 +5078,9 @@
 	_rf="${1}"
 	_lf="${2}"
 
+	# Wait a sec
+	sleep 1
+
 	# Make sure FTP_PASSIVE_MODE is set for fetch to work
 	FTP_PASSIVE_MODE=YES
 	export FTP_PASSIVE_MODE



More information about the Commits mailing list