From b46de0bfa76781b2903b8844611986df18726a2f Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 16 Sep 2019 15:08:53 +1200 Subject: [PATCH] import_layers: fix output when importing layers from scratch Fixes "Importing None" message since we had not yet initialised the layerbranch variable. Signed-off-by: Paul Eggleton --- layerindex/tools/import_layers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layerindex/tools/import_layers.py b/layerindex/tools/import_layers.py index 0ce3196..1e49bbd 100755 --- a/layerindex/tools/import_layers.py +++ b/layerindex/tools/import_layers.py @@ -329,10 +329,10 @@ def main(): continue logger.info('Updating %s (%d/%d)' % (layerbranch, i+1, layercount)) else: - logger.info('Importing %s (%d/%d)' % (layerbranch, i+1, layercount)) layerbranch = LayerBranch() layerbranch.branch = branch layerbranch.layer = layer + logger.info('Importing %s (%d/%d)' % (layerbranch, i+1, layercount)) for key, value in layerbranchjs.items():