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)))
|
os.execute("mkdir "..fs.canonical(m:sub(2)))
|
||||||
end
|
end
|
||||||
if l:sub(1,4) == "http" then
|
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
|
else
|
||||||
os.execute("cp -v "..rpath.."/"..l.." "..fs.canonical(where.."/"..m))
|
os.execute("cp -v "..rpath.."/"..l.." "..fs.canonical(m))
|
||||||
end
|
end
|
||||||
ipackages[pkg][l] = fs.canonical(m:sub(2)).."/"..lseg[#lseg]
|
ipackages[pkg][l] = fs.canonical(m:sub(2)).."/"..lseg[#lseg]
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user