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

Unified Diff: src/platform/dev/stateful_update

Issue 2283003: Make stateful_update use ping_omaha's flags. small devserver clenaups. (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: fix sosa's comments 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') | src/scripts/start_devserver » ('j') | 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 9274618abf112537904cc8237e58675d0f4cb099..5ed234582bcf68d4069eefe4d92da9b132bf603f 100755
--- a/src/platform/dev/stateful_update
+++ b/src/platform/dev/stateful_update
@@ -16,8 +16,13 @@ STATEFUL_MOUNT_POINT="/tmp/s"
PING_OMAHA=/opt/google/memento_updater/ping_omaha.sh
+if [ -n "$1" ] ; then
+ OMAHA_ARG="--omaha_url=$1"
+fi
+
# Get image url for stateful image
-OMAHA_CHECK_OUTPUT=$($PING_OMAHA --app_version ForcedUpdate 2> /dev/null)
+OMAHA_CHECK_OUTPUT=$($PING_OMAHA --app_version ForcedUpdate \
+ "$OMAHA_ARG" 2> /dev/null)
ROOT_UPDATE_URL=$(echo "$OMAHA_CHECK_OUTPUT" | grep '^URL=' | cut -d = -f 2-)
STATEFUL_UPDATE_URL="$(dirname "$ROOT_UPDATE_URL")/stateful.image.gz"
@@ -46,4 +51,4 @@ umount -n -d "$STATEFUL_MOUNT_POINT"
rm -f "$STATEFUL_IMAGE"
-trap - EXIT
+trap - EXIT
« no previous file with comments | « src/platform/dev/autoupdate.py ('k') | src/scripts/start_devserver » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698