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/

Bug #62436 reported by Mantas Kriaučiūnas
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Baltix
Fix Released
Medium
Mantas Kriaučiūnas
msttcorefonts (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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

Revision history for this message
Thijs Kinkhorst (kink) wrote :

I've moved that debhelper code down in the postinst file, so that the fonts registration will be done only after the downloads have succeeded. Thanks for reporting. This will be in a future upload of msttcorefonts, probably 2.2.

Revision history for this message
Thijs Kinkhorst (kink) wrote :

Fixed in 2.2 which is in Debian, and I guess will soon be in Ubuntu aswell.

Revision history for this message
Thijs Kinkhorst (kink) wrote :

Fixed in 2.2.

Changed in msttcorefonts:
status: Unconfirmed → Fix Released
Przemek K. (azrael)
Changed in baltix:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.