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 on 2006-09-26
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Baltix
Medium
Mantas Kriaučiūnas
msttcorefonts (Ubuntu)
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

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.

Thijs Kinkhorst (kink) wrote :

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

Thijs Kinkhorst (kink) wrote :

Fixed in 2.2.

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

Other bug subscribers