aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index c0690ae..f5f2824 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1148,7 +1148,7 @@ function Repository:fetch()
self.manifest = nil
end
if temporary_path then
- common.mkdirp(path)
+ common.mkdirp(common.dirname(path))
common.rename(temporary_path, path)
end
end)