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/
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/
It seems the problem is in msttcorefonts.
# Automatically added by dh_installdefoma
FILE='/
if [ "$1" = configure ]; then
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/
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/
/usr/bin/
Changed in baltix: | |
status: | Confirmed → Fix Released |
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.