fixed repoinstaller's dealing with absolute paths

This commit is contained in:
Izaya 2019-11-11 16:13:31 +11:00
parent 7a48f1a27f
commit a6ff63d398
1 changed files with 2 additions and 2 deletions

View File

@ -202,9 +202,9 @@ local function install(pkg,where) -- installs a package, pkg, to where
os.execute("mkdir "..fs.canonical(m:sub(2)))
end
if l:sub(1,4) == "http" then
os.execute("cp -v "..rpath.."/external/"..l:match(".+/(.+)").." "..fs.canonical(where.."/"..m))
os.execute("cp -v "..rpath.."/external/"..l:match(".+/(.+)").." "..fs.canonical(m))
else
os.execute("cp -v "..rpath.."/"..l.." "..fs.canonical(where.."/"..m))
os.execute("cp -v "..rpath.."/"..l.." "..fs.canonical(m))
end
ipackages[pkg][l] = fs.canonical(m:sub(2)).."/"..lseg[#lseg]
end