| 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)
|
|
|