Skip to content
Snippets Groups Projects
Commit b1c229fd authored by Olivier SOLDANO's avatar Olivier SOLDANO
Browse files

Patch winsparkle xml updater script: no wget

The script was using wget which is no disponible on
the build machine.
This version is more robust as it calls curl if wget isn't
installed and vice versa.

Change-Id: I033100f19d646c5f866fb37a78a11ac711eecb95
parent 2c971036
No related branches found
No related tags found
No related merge requests found
......@@ -16,12 +16,25 @@ if [ ! -f ${PACKAGE} ]; then
fi
if [ ! -s ${SPARKLE_FILE} ]; then
wget --no-check-certificate --retry-connrefused --tries=20 --wait=2 \
--random-wait --waitretry=10 ${SPARKLE_SOURCE} -O ${SPARKLE_FILE}
if [ $? -ne 0 ]; then
echo 'the winsparkle file have been badly overwriten; deleting it.'
rm -f winsparkle.xml
exit 1
if [ $? -eq 127 ]; then
rm -f ${SPARKLE_FILE}
COUNTER=0
curl --retry 2 --retry-delay 2 ${SPARKLE_SOURCE} -o ${SPARKLE_FILE}
until [ $? -eq 0 -o $COUNTER -gt 10 ]; do
sleep 1
let COUNTER=COUNTER+1
curl --retry 2 --retry-delay 2 ${SPARKLE_SOURCE} -o ${SPARKLE_FILE}
done
if [ $? -ne 0 ]; then
echo 'the winsparkle file have been badly overwriten; deleting it.'
rm -f winsparkle.xml
exit 1
fi
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment