Want to mention that we have fixed this in Ubuntu for fonts-guru-extra as well as fonts-{beng,deva,gujr,orya}-extra. We used preinst scripts; please see the attached example.

--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj
#!/bin/sh
set -e

broken_dir=/etc/fonts/conf.avail/65-0-fonts-guru-extra.conf

if dpkg --compare-versions "$2" lt-nl 2.0-4ubuntu2 \
   && [ -d "$broken_dir" ]; then
        # wonderful hack to replace a wrong directory with a conffile.
        mv "$broken_dir" "$broken_dir".tmp
        mv "$broken_dir.tmp/65-0-fonts-guru-extra.conf" /etc/fonts/conf.avail
        rmdir --ignore-fail-on-non-empty "$broken_dir".tmp
fi

#DEBHELPER#

Reply via email to