From 40f06b77843c4d33a8372f713eaa979aa27f9f73 Mon Sep 17 00:00:00 2001 From: behymer2 Date: Fri, 19 Nov 2021 17:47:17 -0600 Subject: [PATCH] fixed ./payload/. does not exist error munkipkg --sync would fail on pseudo-payload-free package projects cloned from git repositories because os.mkdir(./payload/.) would fail, because the parent directory of ./payload/., ./payload, did not exist. Fixed this by changing os.mkdir to os.makedirs, which creates directories recursively analogously to mkdir -p. --- munkipkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/munkipkg b/munkipkg index d6fb409..ddd628e 100755 --- a/munkipkg +++ b/munkipkg @@ -414,7 +414,7 @@ def sync_from_bom_info(project_dir, options): display("Creating %s with mode %s" % (payload_path, oct(desired_mode)), options.quiet) - os.mkdir(payload_path, desired_mode) + os.makedirs(payload_path, desired_mode) changes_made += 1 continue else: