[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: di-autobuilding: rsync being clumsy



Hi again,

  Sending v2 already, as there was a typo in the previous patch.

2011/7/17 Hector Oron <hector.oron@gmail.com>:

>  The following patch attempts to make a little more robust rsync [...]

--- a/buildscript
+++ b/buildscript
@@ -94,6 +94,18 @@ upload_result() {
   DIR=$(date -u '+%Y%m%d-%H:%M')
   echo "INFO: starting rsync"
   rsync "${INSTALLER_DIR}/checkout/build/dest/" d-i@ravel:${DIR} -a
+  exval=$?
+  if [ ${exval} != 0 ] ; then
+       # Retry
+       echo "WARN: rsync exit ${exval}, retrying one more time"
+       rsync "${INSTALLER_DIR}/checkout/build/dest/" d-i@ravel:${DIR} -a
+       exval=$?
+       if [ ${exval} != 0 ] ; then
+               echo "ERROR: rsync exit ${exval}, I'll try tomorrow..."
+       else
+               echo "INFO: rsync exit success"
+       fi
+  fi
   echo "INFO: unhide ${DIR}"
   ssh d-i@ravel unhide ${DIR}
 }


-- 
 Héctor Orón  -.. . -... .. .- -.   -.. . ...- . .-.. --- .--. . .-.

<free spam>
-- Would you like to make a donation for Debian Conference?
   ** http://debconf11.debconf.org/payments.xhtml **
</free spam>


Reply to: