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

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

Issue 2024007: Dev Server: Require Memento Updater (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: 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 | « no previous file | src/platform/dev/devserver.py » ('j') | src/platform/dev/devserver.py » ('J')
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 161694fc69aa42b29ebb213dbaa11f3c010b44a6..1d886a1fb4d81b9bee93113cf26b44bf5ff95a7b 100644
--- a/src/platform/dev/autoupdate.py
+++ b/src/platform/dev/autoupdate.py
@@ -250,6 +250,12 @@ class Autoupdate(BuildObject):
web.debug('handle update ping')
update_dom = minidom.parseString(data)
root = update_dom.firstChild
+ if root.getAttribute('updaterversion') and \
seano 2010/05/07 23:23:17 nit: if root.hasAttribute('updaterversion')
+ not root.getAttribute('updaterversion').startswith(
+ 'MementoSoftwareUpdate'):
+ web.debug('Got update from unsupported updater:' + \
+ root.getAttribute('updaterversion'))
+ return self.GetNoUpdatePayload()
query = root.getElementsByTagName('o:app')[0]
client_version = query.getAttribute('version')
channel = query.getAttribute('track')
« no previous file with comments | « no previous file | src/platform/dev/devserver.py » ('j') | src/platform/dev/devserver.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698