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

svn at pcbsd.org svn at pcbsd.org
Wed Nov 9 08:37:11 PST 2011


Author: kris
Date: 2011-11-09 08:37:11 -0800 (Wed, 09 Nov 2011)
New Revision: 13763

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

Use -a flag for fetch when doing downloads




Modified: pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager
===================================================================
--- pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager	2011-11-09 16:36:36 UTC (rev 13762)
+++ pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager	2011-11-09 16:37:11 UTC (rev 13763)
@@ -71,7 +71,7 @@
 do_check() {
 
 	# Now fetch the update file
-	fetch -o "${PATCHTMPFILE}" "${PATCHURL}" >/dev/null 2>/dev/null 
+	fetch -a -o "${PATCHTMPFILE}" "${PATCHURL}" >/dev/null 2>/dev/null 
 	if [ "$?" = "0" ]
 	then
 	  # If we have new update-data file, extract it
@@ -315,7 +315,7 @@
     numAtt=`expr $numAtt + 1`
     # If the var PCFETCHGUI is unset, use regular fetch command
     if [ -z "$PCFETCHGUI" ] ; then
-      fetch -o ${FETCHOUTFILE} "${FETCHFILE}"
+      fetch -a -o ${FETCHOUTFILE} "${FETCHFILE}"
       if [ $? -eq 0 ] ; then return 0 ; fi
       if [ $numAtt -gt 4 ] ; then 
         return 1
@@ -332,13 +332,13 @@
     rm ${SIZEFILE} 2>/dev/null >/dev/null
     rm ${FETCHOUTFILE} 2>/dev/null >/dev/null
 
-    fetch -s "${FETCHFILE}" >${SIZEFILE}
+    fetch -a -s "${FETCHFILE}" >${SIZEFILE}
     SIZE="`cat ${SIZEFILE}`"
     SIZE="`expr ${SIZE} / 1024 2>/dev/null`"
     echo "FETCH: ${FETCHFILE}"
     echo "FETCH: ${FETCHOUTFILE}" >>${TRIGGERFILE}
  
-    ( fetch -o ${FETCHOUTFILE} "${FETCHFILE}" >/dev/null 2>/dev/null ; echo "$?" > ${EXITFILE} ) &
+    ( fetch -a -o ${FETCHOUTFILE} "${FETCHFILE}" >/dev/null 2>/dev/null ; echo "$?" > ${EXITFILE} ) &
     PID="$!"
     while
     z=1



More information about the Commits mailing list