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

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

Issue 633001: fixup autoupdate for new build system (Closed)
Patch Set: per review comments Created 10 years, 10 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 | « no previous file | src/platform/memento_softwareupdate/ping_omaha.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 f3b74479fe628d5ce4b9c647ef2cdad9a0a8756b..2bdef6803f863e395929b48c95caf5a40583a691 100644
--- a/src/platform/dev/autoupdate.py
+++ b/src/platform/dev/autoupdate.py
@@ -41,8 +41,8 @@ class Autoupdate(BuildObject):
"""
return payload % self.app_id
- def GetLatestImagePath(self):
- cmd = "%s/get_latest_image.sh" % self.scripts_dir
+ def GetLatestImagePath(self, board_id):
+ cmd = "%s/get_latest_image.sh --board %s" % (self.scripts_dir, board_id)
return os.popen(cmd).read().strip()
def GetLatestVersion(self, latest_image_path):
@@ -96,7 +96,8 @@ class Autoupdate(BuildObject):
root = update_dom.firstChild
query = root.getElementsByTagName("o:app")[0]
client_version = query.attributes['version'].value
- latest_image_path = self.GetLatestImagePath();
+ board_id = query.attributes['board'].value
+ latest_image_path = self.GetLatestImagePath(board_id);
latest_version = self.GetLatestVersion(latest_image_path);
if client_version != "ForcedUpdate" and not self.CanUpdate(client_version, latest_version):
web.debug("no update")
« no previous file with comments | « no previous file | src/platform/memento_softwareupdate/ping_omaha.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698