From 6e55cc6419cefe8ac2c5ff4d3b05d69d1572f7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 20 Oct 2016 09:25:39 +0200 Subject: [PATCH] metadata: Stop crashing for non-bootable products MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/metadata.py b/pungi/metadata.py index a18c1fe1..6d4e0e82 100644 --- a/pungi/metadata.py +++ b/pungi/metadata.py @@ -281,7 +281,7 @@ def write_tree_info(compose, arch, variant, timestamp=None): # clone all but 'general' sections from buildinstall .treeinfo bi_dir = compose.paths.work.buildinstall_dir(arch) - if compose.conf['buildinstall_method'] == 'lorax': + if compose.conf.get('buildinstall_method') == 'lorax': # The .treeinfo file produced by lorax is nested in variant # subdirectory. Legacy buildinstall runs once per arch, so there is # only one file.