diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtxrun.lua | 9 | ||||
-rw-r--r-- | scripts/context/stubs/mswin/mtxrun.lua | 9 | ||||
-rwxr-xr-x | scripts/context/stubs/unix/mtxrun | 9 |
3 files changed, 15 insertions, 12 deletions
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index 6b74022ae..bb16aaec0 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -11296,7 +11296,7 @@ function resolvers.registerfilehash(name,content,someerror) end function isreadable(name) - local readable = file.is_readable(name) + local readable = lfs.isfile(name) -- not file.is_readable(name) asit can be a dir if trace_detail then if readable then report_resolvers("file '%s' is readable",name) @@ -11509,10 +11509,11 @@ local function collect_instance_files(filename,askedformat,allresults) -- todo : -- search spec local filetype, extra, done, wantedfiles, ext = '', nil, false, { }, fileextname(filename) -- tricky as filename can be bla.1.2.3 + +-- to be checked + if ext == "" then - if not instance.force_suffixes then - wantedfiles[#wantedfiles+1] = filename - end + wantedfiles[#wantedfiles+1] = filename else wantedfiles[#wantedfiles+1] = filename end diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index 6b74022ae..bb16aaec0 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -11296,7 +11296,7 @@ function resolvers.registerfilehash(name,content,someerror) end function isreadable(name) - local readable = file.is_readable(name) + local readable = lfs.isfile(name) -- not file.is_readable(name) asit can be a dir if trace_detail then if readable then report_resolvers("file '%s' is readable",name) @@ -11509,10 +11509,11 @@ local function collect_instance_files(filename,askedformat,allresults) -- todo : -- search spec local filetype, extra, done, wantedfiles, ext = '', nil, false, { }, fileextname(filename) -- tricky as filename can be bla.1.2.3 + +-- to be checked + if ext == "" then - if not instance.force_suffixes then - wantedfiles[#wantedfiles+1] = filename - end + wantedfiles[#wantedfiles+1] = filename else wantedfiles[#wantedfiles+1] = filename end diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index 6b74022ae..bb16aaec0 100755 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -11296,7 +11296,7 @@ function resolvers.registerfilehash(name,content,someerror) end function isreadable(name) - local readable = file.is_readable(name) + local readable = lfs.isfile(name) -- not file.is_readable(name) asit can be a dir if trace_detail then if readable then report_resolvers("file '%s' is readable",name) @@ -11509,10 +11509,11 @@ local function collect_instance_files(filename,askedformat,allresults) -- todo : -- search spec local filetype, extra, done, wantedfiles, ext = '', nil, false, { }, fileextname(filename) -- tricky as filename can be bla.1.2.3 + +-- to be checked + if ext == "" then - if not instance.force_suffixes then - wantedfiles[#wantedfiles+1] = filename - end + wantedfiles[#wantedfiles+1] = filename else wantedfiles[#wantedfiles+1] = filename end |