[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1022566: fonts-mplus: upgrade of mplus leaves an old /usr/share/fonts/truetype/mplus behind



On Mon, 2022-10-24 at 05:27 +0200, Alexandre Detiste wrote:

> After upgrade of mplus, I still have got old loose dir
> and cache file from previous version:
> 
> /usr/share/fonts/truetype/mplus
> /usr/share/fonts/truetype/mplus/.uuid
> 
> Please remove these files on upgrade.

These files are created by the fontconfig trigger (see details below),
so I think that is the component that should remove them.

Please consider reassigning and retitling the bug to reflect this.

   $ grep  font /var/lib/dpkg/triggers/File 
   /usr/share/fonts fontconfig/noawait
   /usr/share/ghostscript/fonts fontconfig/noawait
   /usr/share/texmf/fonts fontconfig/noawait
   
   $ cat /var/lib/dpkg/info/fontconfig.triggers 
   interest-noawait /usr/share/fonts
   interest-noawait /usr/share/ghostscript/fonts
   interest-noawait /usr/share/texmf/fonts
   
   $ head -vn-0 /var/lib/dpkg/info/fontconfig.post* 
   ==> /var/lib/dpkg/info/fontconfig.postinst <==
   #!/bin/sh
   
   set -e
   
   if [ "$1" = triggered ]; then
     # Force regeneration of all fontconfig cache files.
     mkdir -p /var/cache/fontconfig
     fc-cache -s -v 1>/var/log/fontconfig.log 2>&1 || printf "fc-cache failed.\nSee /var/log/fontconfig.log for more information.\n"
     exit 0
   fi
   
   
   
   if [ "$1" = configure ]; then
     # Force regeneration of all fontconfig cache files.
     mkdir -p /var/cache/fontconfig
     printf "Regenerating fonts cache... "
     fc-cache -s -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
   
   ==> /var/lib/dpkg/info/fontconfig.postrm <==
   #! /bin/sh
   
   set -e
   
   case "$1" in
   	purge)
   	    rm -f /var/log/fontconfig.log
   	    rm -rf /var/cache/fontconfig
   	    ;;
   esac

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: