Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > c500ae3da911205508131df39122577a > scriptlet

fontconfig-2.13.93-4.mga8.i586.rpm

POSTIN

/bin/sh
umask 0022

mkdir -p /usr/lib/fontconfig/cache

[[ -d /var/cache/fontconfig ]] && rm -rf /var/cache/fontconfig/* 2> /dev/null || :

# Force regeneration of all fontconfig cache files
# The check for existance is needed on dual-arch installs (the second
#  copy of fontconfig might install the binary instead of the first)
# The HOME setting is to avoid problems if HOME hasn't been reset
if [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache --version 2>&1 | grep -q 2.13.93 ; then
  HOME=/root /usr/bin/fc-cache -f
fi

POSTUN

/bin/sh
if [ $1 == 0 ] && [ -e /etc/xml/catalog ]; then
  /usr/bin/xmlcatalog --noout --del "urn:fontconfig:fonts.dtd"
fi

POSTTRANS

/bin/sh
if [ -e /etc/xml/catalog ]; then
  /usr/bin/xmlcatalog --noout --add system \
                        "urn:fontconfig:fonts.dtd" \
                        "file:///usr/share/xml/fontconfig/fonts.dtd" \
                        /etc/xml/catalog
fi

Triggers

fontconfig < 2.4.0

/bin/sh
rm -f /var/cache/fontconfig/*.cache-2

# rpm filetriggers to update cache