tag 899142 + patch
thanks

Hi,

attached find the patch to activate the fontconfig trigger.

Explenation (as far as I understand it): normally, fc trigger would be
activated automatically because font packages usually install font files.

fonts-powerline however doesn't install any fonts into e.g.
/usr/share/fonts, so the trigger doesn't get automatically called.

Therefore, instead 'fakeing' an installation of something to
/usr/share/fonts by having a manual 'activate /usr/share/fonts' trigger.

I tested it, seems to work. Alternatively, one could also call 'fc-cache
-sf' in postinst, but that slows things down unecessarily.

Regards,
Daniel
commit 568e97352c5416dc773d4659806b1dcad5060227
Author: Daniel Baumann <[email protected]>
Date:   Sat May 19 21:28:02 2018 +0200

    Adding dpkg trigger to fonts-powerline to automatically update fontconfig cache (Closes: #899142).
    
    Signed-off-by: Daniel Baumann <[email protected]>

diff --git a/debian/fonts-powerline.triggers b/debian/fonts-powerline.triggers
new file mode 100644
index 0000000..57370ea
--- /dev/null
+++ b/debian/fonts-powerline.triggers
@@ -0,0 +1 @@
+activate /usr/share/fonts

Reply via email to