fix directory concatination

This commit is contained in:
2025-04-25 23:14:00 -05:00
parent 85a0755af7
commit 381f473a15
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ function M.clean()
while handle do while handle do
local name = h.uv.fs_scandir_next(handle) local name = h.uv.fs_scandir_next(handle)
if name then if name then
queue[name] = packager.get_base_dir()..name queue[name] = packager.get_base_dir().."/"..name
else else
break break
end end

View File

@ -251,7 +251,7 @@ function package:new(spec, overrides)
o.name = spec.as or o.name or id:match("^[%w-_.]+/([%w-_.]+)$") o.name = spec.as or o.name or id:match("^[%w-_.]+/([%w-_.]+)$")
o.url = spec.url or o.url or ("https://github.com/"..id..".git") o.url = spec.url or o.url or ("https://github.com/"..id..".git")
o.branch = spec.branch or o.branch o.branch = spec.branch or o.branch
o.dir = base_dir..o.name o.dir = base_dir.."/"..o.name
o.commit = spec.commit o.commit = spec.commit
o.pin = overrides.pin or spec.pin or o.pin o.pin = overrides.pin or spec.pin or o.pin
o.enabled = not overrides.disable and not spec.disable and o.enabled o.enabled = not overrides.disable and not spec.disable and o.enabled