From dc19363a5cbf878c61020d72bd7d3eeb9e836cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 5 Jan 2017 11:37:07 +0100 Subject: [PATCH] unified-iso: Create work/ dir if missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In theory the directory could be deleted before generating the isos. This patch will recreate it when needed. Signed-off-by: Lubomír Sedlář --- 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 938467c4..605eff56 100644 --- a/pungi_utils/unified_isos.py +++ b/pungi_utils/unified_isos.py @@ -66,6 +66,7 @@ class UnifiedISO(object): self.linker = pungi.linker.Linker() temp_topdir = os.path.abspath(os.path.join(self.compose_path, "..", "work")) + makedirs(temp_topdir) self.temp_dir = tempfile.mkdtemp(prefix="unified_isos_", dir=temp_topdir) self.treeinfo = {} # {arch/src: TreeInfo}