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

Unified Diff: autoupdate.py

Issue 2817038: Explicitly reply no update for factory clients w/o update. (Closed) Base URL: ssh://gitrw.chromium.org/dev-util.git
Patch Set: add break Created 10 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autoupdate.py
diff --git a/autoupdate.py b/autoupdate.py
index 8f9f5add803a449f5a14dc6b2aac0fcff71e55df..3e390b683cb71b6f6e1f69baec07455caf6ae635 100644
--- a/autoupdate.py
+++ b/autoupdate.py
@@ -262,9 +262,12 @@ class Autoupdate(BuildObject):
for stanza in self.factory_config:
if board_id not in stanza['qual_ids']:
continue
+ if kind + '_image' not in stanza:
+ break
return (stanza[kind + '_image'],
stanza[kind + '_checksum'],
stanza[kind + '_size'])
+ return (None, None, None)
def HandleUpdatePing(self, data, label=None):
web.debug('handle update ping')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698