From 0350b715dd720e6213a91077f5278eed95fae55a Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 10 Jul 2017 12:06:24 -0600 Subject: [PATCH] unified-iso: handle empty arch Prior to this change, when running pungi-create-unified-iso on a compose with zero builds present for an arch, unified-iso crashes. The problem is that unified-iso does not set up the arch's debuginfo destination directory at all before trying to dump the productmd treeinfo for that arch's debuginfo. productmd tries to write to the destination directory that does not exist. Signed-off-by: Ken Dreyer --- pungi_utils/unified_isos.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pungi_utils/unified_isos.py b/pungi_utils/unified_isos.py index 460c0089..565deccd 100644 --- a/pungi_utils/unified_isos.py +++ b/pungi_utils/unified_isos.py @@ -248,6 +248,7 @@ class UnifiedISO(object): for arch, ti in self.treeinfo.iteritems(): print("Writing treeinfo: {0}".format(arch)) ti_path = os.path.join(self.temp_dir, "trees", arch, ".treeinfo") + makedirs(os.path.dirname(ti_path)) ti.dump(ti_path) def discinfo(self):