]> code.ossystems Code Review - openembedded-core.git/commit
update_font_cache: only scan system font directories
authorRoss Burton <ross.burton@intel.com>
Fri, 8 Jan 2016 20:44:15 +0000 (20:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Jan 2016 23:23:18 +0000 (23:23 +0000)
commit541315d6c56df6448f64c262f99d43d5c1e9400b
treeed191cb6b8542fd8b77b080f16857f9074753f6b
parent065ebeb3e15311d0d45385e15bf557b1c95b1669
update_font_cache: only scan system font directories

By default fc-cache will scan both system and user directories, which means it
attempts to scan $HOME/.fonts.  As this is the build host's idea of $HOME this
generally doesn't exist, and causes fc-cache to exit with a failure.

Solve this by passing --system-only so that fc-cache will only scan system
directories, as is appropriate for a rootfs-time invocation.

Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/postinst-intercepts/update_font_cache