Public bug reported:

msttcorefonts postinst script creates broken symlinks in
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType if MS fonts are not
downloaded for some reason, for example use has no internet connection
during installation of msttcorefonts package.

It seems the problem is in msttcorefonts.postinst script - at the
begining of this script there are such code:

# Automatically added by dh_installdefoma
FILE='/etc/defoma/hints/msttcorefonts.hints'
if [ "$1" = configure ]; then
        /usr/bin/defoma-font reregister-all $FILE
fi
# End automatically added section

So, fonts, described in msttcorefonts.hints are registered by defoma-
font even if they are not downloaded and not installed :(

Solution would be call "defoma-font reregister-all $FILE" only if MS
fonts are successfully installed into
/usr/share/fonts/truetype/msttcorefonts/.

Another solution would be to add checking function if MS fonts are
successfully installed into /usr/share/fonts (this function should run
after defoma-font reregister-all $FILE) and if there are no MS fonts in
/usr/share/fonts/truetype/msttcorefonts/ then run

/usr/bin/defoma-font purge-all $FILE

** Affects: msttcorefonts (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed
** Affects: Baltix
     Importance: Medium
     Assignee: Mantas Kriaučiūnas
         Status: Confirmed

** Also affects: Baltix
   Importance: Undecided
       Status: Unconfirmed

** Changed in: Baltix
   Importance: Undecided => Medium
     Assignee: (unassigned) => Mantas Kriaučiūnas
       Status: Unconfirmed => Confirmed
       Target: None => dapper

-- 
msttcorefonts postinst creates broken symlinks in 
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType if MS fonts are not downloaded 
or not installed successfuly into /usr/share/fonts/truetype/
https://launchpad.net/bugs/62436

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to