From e9ca460086cc91695f6076508d162597e8cc84c6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 23 Mar 2009 18:48:25 +0100 Subject: [PATCH] triggers/x11-fonts: also run fc-cache on specified dirs. --HG-- extra : convert_revision : 826b435f7f28f4f133a784ae0f5cb9102e8b9940 --- triggers/x11-fonts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/triggers/x11-fonts b/triggers/x11-fonts index 72aeff1e9ab..2bf749883f9 100755 --- a/triggers/x11-fonts +++ b/triggers/x11-fonts @@ -1,7 +1,8 @@ #!/bin/sh # # This trigger rebuilds the fonts.dir and fonts.scale files -# for packages that install X11 fonts. +# for packages that install X11 fonts, and update fontconfig's +# cache for those fonts. # # Arguments: $1 = action [run/targets] # $2 = target [post-install/pre-remove] @@ -11,6 +12,7 @@ trigger="x11-fonts" mkfontdir=./usr/bin/mkfontdir mkfontscale=./usr/bin/mkfontscale +fccache=./usr/bin/fc-cache case "$1" in targets) @@ -32,6 +34,8 @@ run) ${mkfontdir} .${dir} || exit $? echo "Building ${dir}/fonts.scale..." ${mkfontscale} .${dir} || exit $? + echo "Updating fontconfig's cache..." + ${fccache} .${dir} 2>/dev/null done ;; pre-remove)