From cb93fe6e34c2cf697e29809d50ff56050c3ddf99 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 11 Feb 2024 17:58:08 -0500 Subject: Made sure to create folders for files if they don't exist. --- src/lpm.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/lpm.lua b/src/lpm.lua index 7604b63..49768ca 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -863,6 +863,7 @@ function Addon:install(bottle, installing) local stripped_local_path = local_path:find("%.[^%.]+%-[^%.]+%.[^%.]*$") and local_path:gsub("%.[^%.]+%-[^%.]+", "") or local_path if not system.stat(temporary_path) then + common.mkdirp(common.dirname(temporary_path)) if SYMLINK and self.repository:is_local() and system.stat(local_path) then log_action("Symlinking " .. local_path .. " to " .. target_path) system.symlink(local_path, temporary_path) -- cgit v1.2.3