fixed repoinstaller's dealing with absolute paths
This commit is contained in:
parent
7a48f1a27f
commit
a6ff63d398
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user