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

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

Issue 1633018: devserver support for update images from buildbot. (Closed)
Patch Set: Created 10 years, 8 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') | 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 ac66d517b7ba3f0b8de0209271c9c85433af536f..47e621120a3a8137cb4e5d8acfef51d8bb9da87c 100644
--- a/src/platform/dev/autoupdate.py
+++ b/src/platform/dev/autoupdate.py
@@ -98,8 +98,12 @@ class Autoupdate(BuildObject):
else:
image_file = 'chromiumos_image.bin'
if self.serve_only:
- os.system('cd %s && unzip -o image.zip' %
+ err = os.system('cd %s && unzip -o image.zip %s unpack_partitions.sh' %
(image_path, image_file))
+ if err:
+ web.debug('unzip image.zip failed.')
+ return False
+
os.system('rm -f %s/part_*' % image_path)
os.system('cd %s && ./unpack_partitions.sh %s' % (image_path, image_file))
shutil.move(os.path.join(image_path, 'part_2'), kernel_file)
« no previous file with comments | « no previous file | src/platform/dev/devserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698