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

Unified Diff: src/platform/dev/autoupdate.py

Issue 503088: add -f option to force a client update (Closed)
Patch Set: Created 11 years 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 | « no previous file | src/platform/memento_softwareupdate/memento_updater.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/dev/autoupdate.py
diff --git a/src/platform/dev/autoupdate.py b/src/platform/dev/autoupdate.py
index f2f3183e5d295c9022f658cf403fc6ed7eded2f7..2f0fe956b543fcd3af230c68e789b46a49b7d41d 100644
--- a/src/platform/dev/autoupdate.py
+++ b/src/platform/dev/autoupdate.py
@@ -95,7 +95,7 @@ class Autoupdate(BuildObject):
client_version = query.attributes['version'].value
latest_image_path = self.GetLatestImagePath();
latest_version = self.GetLatestVersion(latest_image_path);
- if not self.CanUpdate(client_version, latest_version):
+ if client_version != "ForcedUpdate" and not self.CanUpdate(client_version, latest_version):
web.debug("no update")
return self.GetNoUpdatePayload()
« no previous file with comments | « no previous file | src/platform/memento_softwareupdate/memento_updater.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698