From f5897eccbbb92041e95e515ae7b6be1e919ddaae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 16 Mar 2016 15:24:37 +0100 Subject: [PATCH] [metadata] Stop crashing on empty path from .treeinfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/metadata.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pungi/metadata.py b/pungi/metadata.py index 62801300..364076d7 100644 --- a/pungi/metadata.py +++ b/pungi/metadata.py @@ -293,6 +293,10 @@ def write_tree_info(compose, arch, variant, timestamp=None): ti.images.images[platform] = {} ti.tree.platforms.add(platform) for image, path in bi_ti.images.images[platform].items(): + if not path: + # The .treeinfo file contains an image without a path. + # We can't add that. + continue ti.images.images[platform][image] = path ti.checksums.add(path, "sha256", root_dir=os_tree)