[Debian-in-workers] Bug#866051: fonts-guru-extra: upgrade does not clean up obsoleted directories
Gunnar Hjalmarsson
gunnarhj at ubuntu.com
Sat Jun 16 08:23:46 BST 2018
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
-------------- next part --------------
#!/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#
More information about the Debian-in-workers
mailing list