[latex3-commits] [git/LaTeX3-latex3-l3build] main: os.time + gethome (a7dc278)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Mar 24 12:37:04 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/a7dc2783bca036fdddc1b14d99c4612f68e21620

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

commit a7dc2783bca036fdddc1b14d99c4612f68e21620
Author: LAURENS Jérôme <jerome.laurens at u-bourgogne.fr>
Date:   Fri Mar 19 19:33:03 2021 +0100

    os.time + gethome
    
    - typo fixed: os_time
    - gethome creates the directory before asking for abspath


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

a7dc2783bca036fdddc1b14d99c4612f68e21620
 l3build-aux.lua     | 2 +-
 l3build-install.lua | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/l3build-aux.lua b/l3build-aux.lua
index aba7a69..12fe704 100644
--- a/l3build-aux.lua
+++ b/l3build-aux.lua
@@ -31,7 +31,7 @@ local print = print
 
 local lookup = kpse.lookup
 
-local os_time = os_time
+local os_time = os.time
 --
 -- Auxiliary functions which are used by more than one main function
 --
diff --git a/l3build-install.lua b/l3build-install.lua
index f3cd95a..7b798e2 100644
--- a/l3build-install.lua
+++ b/l3build-install.lua
@@ -37,7 +37,9 @@ local insert = table.insert
 
 local function gethome()
   set_program("latex")
-  return abspath(options["texmfhome"] or var_value("TEXMFHOME"))
+  local result = options["texmfhome"] or var_value("TEXMFHOME")
+  mkdir(result)
+  return abspath(result)
 end
 
 function uninstall()





More information about the latex3-commits mailing list.