From 532918e76cb346d3244b42ae4ba562d1c3674174 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 11 Aug 2020 15:44:47 -0400 Subject: [PATCH] xbps-triggers: silence warnings, unhelpful errors in texmf-dist The texmf-dist trigger produces warnings about missing inifiles that are suppressed by adding the `--quiet` command-line argument. However, this still leaves errors about missing engines when texlive package are installed without texlive-LuaTeX and texlive-XeTeX. The command-line option `--no-error-if-no-engine` is used to suppress these errors about missing optional components. --- srcpkgs/xbps-triggers/files/texmf-dist | 4 +++- srcpkgs/xbps-triggers/template | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/texmf-dist b/srcpkgs/xbps-triggers/files/texmf-dist index c7758266bdb..711f63fa101 100755 --- a/srcpkgs/xbps-triggers/files/texmf-dist +++ b/srcpkgs/xbps-triggers/files/texmf-dist @@ -16,6 +16,7 @@ UPDATE="$5" texhash=usr/bin/texhash fmtutil=usr/bin/fmtutil-sys +optional_engines="luahbtex,luajithbtex,luajittex,luatex,xetex" case "$ACTION" in targets) @@ -28,7 +29,8 @@ run) fi if [ -x ${fmtutil} ]; then echo "Updating texmf-dist formats..." - ${fmtutil} --all >/dev/null || true + ${fmtutil} --no-error-if-no-engine="${optional_engines}" \ + --quiet --all >/dev/null || true fi ;; *) diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 2c76f76e3b1..b28d198b1ce 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.115 +version=0.116 revision=1 archs=noarch bootstrap=yes