summaryrefslogtreecommitdiff
path: root/worker_manager
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-01-21 15:37:56 +0200
committerLars Wirzenius <liw@liw.fi>2018-01-21 20:30:19 +0200
commit75804c013373a614ec038c5ec02b19aeae138b82 (patch)
treeefd5bf41236889feac40441498623b4da7412b1a /worker_manager
parent832611434405f4efae05d16f15ab9f7b88ae810c (diff)
downloadick2-75804c013373a614ec038c5ec02b19aeae138b82.tar.gz
Fix: handle missing systree blob
Diffstat (limited to 'worker_manager')
-rwxr-xr-xworker_manager6
1 files changed, 6 insertions, 0 deletions
diff --git a/worker_manager b/worker_manager
index 9e16d19..3fc3220 100755
--- a/worker_manager
+++ b/worker_manager
@@ -513,7 +513,13 @@ class SystreePopulator(WorkerBase):
return 1
self.make_directory_empty(self.systree_dir)
+ self.report(b'Downloading systree blob\n')
tarball = self._api.download_blob(systree_name)
+ if tarball is None:
+ self.report(b'Download failed\n')
+ return 1
+
+ self.report(b'Unpacking systree blob\n')
self.unpack_systree(tarball, self.systree_dir)
self.report(b'Systree has been populated\n')