From a6ff63d398a5739844940aab5473d4f06918351e Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 11 Nov 2019 16:13:31 +1100 Subject: [PATCH] fixed repoinstaller's dealing with absolute paths --- repo-installer/repoinstaller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo-installer/repoinstaller.lua b/repo-installer/repoinstaller.lua index 8b5af02..a9a4220 100644 --- a/repo-installer/repoinstaller.lua +++ b/repo-installer/repoinstaller.lua @@ -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