Dr. Werner Fink 2024-03-22 10:07:11 +00:00 committed by Git OBS Bridge
parent 61648ece7f
commit d7b285b208

View File

@ -1,9 +1,9 @@
--- ---
texk/kpathsea/tex-file.c | 16 +++++++++++++++- texk/kpathsea/tex-file.c | 14 +++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-) 1 file changed, 13 insertions(+), 1 deletion(-)
--- texk/kpathsea/tex-file.c --- texk/kpathsea/tex-file.c
+++ texk/kpathsea/tex-file.c 2024-03-22 09:23:02.305892751 +0000 +++ texk/kpathsea/tex-file.c 2024-03-22 10:05:55.034645098 +0000
@@ -21,7 +21,9 @@ @@ -21,7 +21,9 @@
#include <kpathsea/c-fopen.h> #include <kpathsea/c-fopen.h>
@ -14,14 +14,12 @@
#include <kpathsea/cnf.h> #include <kpathsea/cnf.h>
#include <kpathsea/absolute.h> #include <kpathsea/absolute.h>
#include <kpathsea/concatn.h> #include <kpathsea/concatn.h>
@@ -1316,13 +1318,25 @@ kpathsea_name_ok (kpathsea kpse, const_s @@ -1316,13 +1318,23 @@ kpathsea_name_ok (kpathsea kpse, const_s
TEXMFSYSVAR. */ TEXMFSYSVAR. */
if (extended) { if (extended) {
const_string texmfvar = kpathsea_var_value (kpse, "TEXMFVAR"); const_string texmfvar = kpathsea_var_value (kpse, "TEXMFVAR");
+ string cache = kpathsea_var_value (kpse, "VARTEXFONTS"); + string cache = kpathsea_var_value (kpse, "VARTEXFONTS");
+ string tmp = concat3 (cache, "/", "k_p_s_e_t_e_s_t_.tmp"); + int fa = access(cache, W_OK);
+ int fa = access(tmp, W_OK);
+ free (tmp);
+ if (fa != 0) { + if (fa != 0) {
+ string home = getenv ("HOME"); + string home = getenv ("HOME");
+ cache = concat3 (home, "/", ".cache/texmf/fonts"); + cache = concat3 (home, "/", ".cache/texmf/fonts");