user nobody with group mktex and its $VARTEXFONTS
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=262
This commit is contained in:
parent
9a6e368e55
commit
b0ca6bc086
19
source.dif
19
source.dif
@ -242,15 +242,24 @@
|
||||
case $dirname in
|
||||
"") # Do nothing
|
||||
;;
|
||||
@@ -141,6 +144,7 @@ old_ls_R_magic='% ls-R -- maintained by
|
||||
@@ -141,6 +144,16 @@ old_ls_R_magic='% ls-R -- maintained by
|
||||
shift
|
||||
}
|
||||
|
||||
+cache="`kpsewhich --expand-var='$VARTEXFONTS'`"
|
||||
+{
|
||||
+ saveIFS=$IFS
|
||||
+ IFS=:
|
||||
+ for c in ${cache}; do
|
||||
+ test -w "$c" || continue
|
||||
+ cache=$c
|
||||
+ done
|
||||
+ IFS=$saveIFS
|
||||
+}
|
||||
for TEXMFLS_R in "$@"; do
|
||||
# Prepend cwd if the directory was relative.
|
||||
case "$TEXMFLS_R" in
|
||||
@@ -170,12 +174,23 @@ for TEXMFLS_R in "$@"; do
|
||||
@@ -170,12 +183,23 @@ for TEXMFLS_R in "$@"; do
|
||||
# want to be silent if the directory doesn't exist, since the ls-R
|
||||
# path ordinarily contains many nonexistent directories.
|
||||
test -d "$db_dir" || continue
|
||||
@ -276,7 +285,7 @@
|
||||
elif test -s "$db_file" \
|
||||
&& test "x`sed '1s/
$//;1q' \"$db_file\"`" != "x$ls_R_magic" \
|
||||
&& test "x`sed '1s/
$//;1q' \"$db_file\"`" != "x$old_ls_R_magic"; then
|
||||
@@ -186,8 +201,13 @@ for TEXMFLS_R in "$@"; do
|
||||
@@ -186,8 +210,13 @@ for TEXMFLS_R in "$@"; do
|
||||
# Skip if we cannot write the file:
|
||||
kpseaccess -w "$db_file" || { echo "$progname: $db_file: no write permission, skipping..." >&2; continue; }
|
||||
|
||||
@ -292,7 +301,7 @@
|
||||
|| { echo "$progname: $db_dir_tmp: could not create directory, skipping..." >&2; continue; }
|
||||
db_file_tmp="$db_dir_tmp/lsR$$.tmp"
|
||||
rm -f "$db_file_tmp"
|
||||
@@ -195,7 +215,9 @@ for TEXMFLS_R in "$@"; do
|
||||
@@ -195,7 +224,9 @@ for TEXMFLS_R in "$@"; do
|
||||
$verbose && echo "$progname: Updating $db_file... "
|
||||
$dry_run && continue
|
||||
|
||||
@ -303,7 +312,7 @@
|
||||
|
||||
# The main task. We put ./: in the output, so top-level files can be
|
||||
# found via ls-R. Probably irrelevant in practice. The sed command
|
||||
@@ -209,15 +231,20 @@ for TEXMFLS_R in "$@"; do
|
||||
@@ -209,15 +240,20 @@ for TEXMFLS_R in "$@"; do
|
||||
vc_dirs='\.\(bzr\|git\|hg\|svn\)\|_darcs'
|
||||
(cd "$TEXMFLS_R" && \ls -LRa 2>/dev/null) \
|
||||
| sed -e '/^$/{n;s%^\./%%;s%^%./%;}; /^\.$/d; /^\.\.$/d; /^'$vc_dirs'$/d;' \
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 14 16:41:11 UTC 2017 - werner@suse.de
|
||||
|
||||
- Sometimes user nobody has its own ~/.cache directory therefore
|
||||
split path at colon if found
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 8 08:22:20 UTC 2017 - werner@suse.de
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user