Hi again, Sending v2 already, as there was a typo in the previous patch.
2011/7/17 Hector Oron <[email protected]>: > 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> -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/CAODfWeHV09ed=nejw-nusn3fqb+wwxra0h7k2xq4mabyy-z...@mail.gmail.com
