[latex3-commits] [git/LaTeX3-latex3-l3build] master: Return errorlevel from save() (fixes #68) (dc22b86)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Jul 27 16:51:09 CEST 2018


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

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

commit dc22b866785b0fb311311c64cf910f475d71faf1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Jul 27 15:51:09 2018 +0100

    Return errorlevel from save() (fixes #68)


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

dc22b866785b0fb311311c64cf910f475d71faf1
 l3build-check.lua |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/l3build-check.lua b/l3build-check.lua
index 442bd91..5881fe3 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -904,6 +904,7 @@ function save(names)
               .. " file overrides unpacked version of the same name"
           )
         end
+        return 0
       elseif locate({unpackdir, testfiledir}, {name .. lveext}) then
         print(
           "Saved " .. tlgext .. " file overrides a "
@@ -914,7 +915,9 @@ function save(names)
           "Test input \"" .. testfiledir .. "/" .. name .. lvtext
             .. "\" not found"
         )
+        return 1
       end
+      return 0
     end
   end
 end





More information about the latex3-commits mailing list