[latex3-commits] [git/LaTeX3-latex3-l3build] master: splitpath → dirname (8ddcff7)

LAURENS Jérôme jerome.laurens at u-bourgogne.fr
Sun Feb 21 20:16:18 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/8ddcff7cf67e69bfa34eb137d2f8e01d09bb701b

>---------------------------------------------------------------

commit 8ddcff7cf67e69bfa34eb137d2f8e01d09bb701b
Author: LAURENS Jérôme <jerome.laurens at u-bourgogne.fr>
Date:   Sun Feb 21 20:16:18 2021 +0100

    splitpath → dirname


>---------------------------------------------------------------

8ddcff7cf67e69bfa34eb137d2f8e01d09bb701b
 l3build-ctan.lua    | 2 +-
 l3build-install.lua | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/l3build-ctan.lua b/l3build-ctan.lua
index 9815077..1f5f9e2 100644
--- a/l3build-ctan.lua
+++ b/l3build-ctan.lua
@@ -39,7 +39,7 @@ function copyctan()
     else
       for _,filetype in pairs(files) do
         for file,_ in pairs(tree(source,filetype)) do
-          local path = splitpath(file)
+          local path = dirname(file)
           local ctantarget = ctandir .. "/" .. ctanpkg .. "/"
             .. source .. "/" .. path
           mkdir(ctantarget)
diff --git a/l3build-install.lua b/l3build-install.lua
index cea9aa1..eb1f149 100644
--- a/l3build-install.lua
+++ b/l3build-install.lua
@@ -97,7 +97,7 @@ function uninstall()
   if errorlevel ~= 0 then return errorlevel end
   -- Finally, clean up special locations
   for _,location in ipairs(tdslocations) do
-    local path = splitpath(location)
+    local path = dirname(location)
     errorlevel = zapdir(path)
     if errorlevel ~= 0 then return errorlevel end
   end





More information about the latex3-commits mailing list.