[PC-BSD Commits] r13505 - pcbsd/current/src-sh/pc-updatemanager

svn at pcbsd.org svn at pcbsd.org
Tue Oct 25 08:24:22 PDT 2011


Author: kris
Date: 2011-10-25 08:24:22 -0700 (Tue, 25 Oct 2011)
New Revision: 13505

Modified:
   pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager
Log:

Increase number of attempts between failed downloads a bit further, and
add it to CLI mode



Modified: pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager
===================================================================
--- pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager	2011-10-25 15:09:05 UTC (rev 13504)
+++ pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager	2011-10-25 15:24:22 UTC (rev 13505)
@@ -317,10 +317,11 @@
     if [ -z "$PCFETCHGUI" ] ; then
       fetch -o ${FETCHOUTFILE} "${FETCHFILE}"
       if [ $? -eq 0 ] ; then return 0 ; fi
-      if [ $numAtt -gt 3 ] ; then 
+      if [ $numAtt -gt 4 ] ; then 
         return 1
       else
- 	sleep 1
+	# Sleep before retrying a failed download
+        sleep 40 
 	continue
       fi
     fi
@@ -370,11 +371,11 @@
     rm ${EXITFILE} 2>/dev/null >/dev/null
 
     if [ "${EXIT}" != "0" -a "$EXITFAILED" = "1" ]; then
-      if [ $numAtt -gt 3 ] ; then 
+      if [ $numAtt -gt 4 ] ; then 
         exit_err "Error: Failed to download ${FETCHFILE}"
       else
 	# Sleep before retrying a failed download
-        sleep 30 
+        sleep 40 
 	continue
       fi
     fi



More information about the Commits mailing list