diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-05 19:44:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-05 19:44:19 +0000 |
commit | 04c30db0018970c69516d748c7b4509240857b65 (patch) | |
tree | 60c80f16c8a85519e3e0af6981047bfc3fcd5d29 /Master/texmf-dist/scripts/l3build/l3build-unpack.lua | |
parent | 4754ab4e3ed4d6763f26591c2c84be9dfcf54664 (diff) |
l3build (5may21)
git-svn-id: svn://tug.org/texlive/trunk@59091 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/l3build/l3build-unpack.lua')
-rw-r--r-- | Master/texmf-dist/scripts/l3build/l3build-unpack.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Master/texmf-dist/scripts/l3build/l3build-unpack.lua b/Master/texmf-dist/scripts/l3build/l3build-unpack.lua index 412b5e84da7..7ab21ee09d4 100644 --- a/Master/texmf-dist/scripts/l3build/l3build-unpack.lua +++ b/Master/texmf-dist/scripts/l3build/l3build-unpack.lua @@ -1,6 +1,6 @@ --[[ -File l3build-unpack.lua Copyright (C) 2018-2020 The LaTeX3 Project +File l3build-unpack.lua Copyright (C) 2018-2020 The LaTeX Project It may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this @@ -22,12 +22,10 @@ for those people who are interested. --]] -local execute = os.execute - -- Unpack the package files using an 'isolated' system: this requires -- a copy of the 'basic' DocStrip program, which is used then removed function unpack(sources, sourcedirs) - local errorlevel = depinstall(unpackdeps) + local errorlevel = dep_install(unpackdeps) if errorlevel ~= 0 then return errorlevel end @@ -46,7 +44,7 @@ end -- Split off from the main unpack so it can be used on a bundle and not -- leave only one modules files -bundleunpack = bundleunpack or function(sourcedirs, sources) +function bundleunpack(sourcedirs, sources) local errorlevel = mkdir(localdir) if errorlevel ~=0 then return errorlevel @@ -72,8 +70,8 @@ bundleunpack = bundleunpack or function(sourcedirs, sources) end end for _,i in ipairs(unpackfiles) do - for j,_ in pairs(tree(unpackdir, i)) do - local path, name = splitpath(j) + for _,p in ipairs(tree(unpackdir, i)) do + local path, name = splitpath(p.src) local localdir = abspath(localdir) local success = io.popen( "cd " .. unpackdir .. "/" .. path .. os_concat .. |