From 407cb2140993287accfcc39b2847b6d72d34c897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAURENS=20J=C3=A9r=C3=B4me?= Date: Thu, 20 Jun 2024 15:38:22 +0200 Subject: [PATCH] Low level failures detected+debug mode in execute --- CHANGELOG.md | 1 + l3build-file-functions.lua | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a447554..71b4905 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers. ### Fixed - Global `typesetopts` no longer ignored for `luatex` and `lualatex` (issue \#351) - Handling of spaces in options +- Low level failures detected ## [2024-05-27] diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua index a1b22ce..c706ea4 100644 --- a/l3build-file-functions.lua +++ b/l3build-file-functions.lua @@ -236,12 +236,12 @@ function cp(glob, source, dest) errorlevel = execute( 'xcopy /y /e /i "' .. unix_to_win(p.cwd) .. '" ' .. unix_to_win(dest .. '/' .. escapepath(p.src)) .. ' > nul' - ) and 0 or 1 + ) -- execute returns an integer else errorlevel = execute( 'xcopy /y "' .. unix_to_win(p.cwd) .. '" ' .. unix_to_win(dest .. '/') .. ' > nul' - ) and 0 or 1 + ) -- execute returns an integer end else -- Ensure we get similar behavior on all platforms @@ -251,7 +251,7 @@ function cp(glob, source, dest) end errorlevel = execute( "cp -RLf '" .. p.cwd .. "' " .. dest - ) and 0 or 1 + ) -- execute returns an integer end if errorlevel ~=0 then return errorlevel