Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: src/platform/dev/stateful_update

Issue 2392002: Quiet down stateful_update & add timeout for downloads. (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: fixes to autoupdate to work with memento_updater and autotest. Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/dev/autoupdate.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/dev/stateful_update
diff --git a/src/platform/dev/stateful_update b/src/platform/dev/stateful_update
index 5ed234582bcf68d4069eefe4d92da9b132bf603f..b73d796a6882b74d3ca0ddc07d31f9dd4232fa1b 100755
--- a/src/platform/dev/stateful_update
+++ b/src/platform/dev/stateful_update
@@ -35,7 +35,9 @@ mkdir -p "$STATEFUL_MOUNT_POINT"
# Unzip mount and copy the relevant directories.
# Get the update.
-eval "wget -O - \"$STATEFUL_UPDATE_URL\"" | gzip -d > $STATEFUL_IMAGE
+eval "wget -qS -T 300 -O - \"$STATEFUL_UPDATE_URL\"" | \
+ gzip -d > $STATEFUL_IMAGE
+echo "Successfully downloaded update"
trap "rm -f \"$STATEFUL_IMAGE\"" EXIT
mount -n -o loop "$STATEFUL_IMAGE" "$STATEFUL_MOUNT_POINT"
if [ -d "$STATEFUL_MOUNT_POINT/var" ] && \
« no previous file with comments | « src/platform/dev/autoupdate.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698