Bug#318140: xfonts-100dpi: doesn't remove cleanly due to fonts.cache-1
On Wed, Jul 13, 2005 at 12:59:12PM -0700, Keith Packard wrote:
> Does xfonts-100dpi even run 'fc-cache' when it installs this directory?
> Or is it generated as a part of some other installation process?
It looks like it is done as part of the "config" action in
fontconfig.postinst:
if [ "$1" = configure ]; then
# (Hacked up from Red Hat 8 fontconfig RPM)
# Force regeneration of all fontconfig cache files.
# The redirect is because fc-cache is giving warnings about ~/fc.cache
# the HOME setting is to avoid problems if HOME hasn't been reset
printf "Regenerating fonts cache... "
HOME=/root fc-cache -f -v 1>/var/log/fontconfig.log 2>&1 || (printf "failed.\nSee /var/log/fontconfig.log for more information.\n"; exit 1)
printf "done.\n"
fi
exit 0
Doing "dpkg-reconfigure fontconfig" recreates the fonts.cache-1 files
everywhere.
--
Eric Cooper e c c @ c m u . e d u
Reply to: