[Pkg-fonts-devel] Bug#604622: otf-ipafont-gothic: Delete with alternative of otf-ipafont-mincho
Source: otf-ipafont-gothic
Version: 00302-9
Severity: important
Tags: patch
Hi,
If user deleted otf-ipafont-gothic, alternative of otf-ipafont-mincho
is deleted.
This is caused by a mistake of otf-ipafont-gothic.prerm .
$ ls /etc/alternatives/ttf-japanese-*.ttf -l
lrwxrwxrwx 1 root root 42 2010-11-10 14:25
/etc/alternatives/ttf-japanese-gothic.ttf ->
/usr/share/fonts/opentype/ipafont/ipag.ttf
lrwxrwxrwx 1 root root 42 2010-11-10 14:25
/etc/alternatives/ttf-japanese-mincho.ttf ->
/usr/share/fonts/opentype/ipafont/ipam.ttf
$ dpkg -l | grep otf-ipafont
ii otf-ipafont-gothic 00302-9
Japanese OpenType font set, IPA Gothic font
ii otf-ipafont-mincho 00302-9
Japanese OpenType font set, IPA Mincho font
$ sudo apt-get remove --purge otf-ipafont-gothic
$ ls /etc/alternatives/ttf-japanese-*.ttf -l
lrwxrwxrwx 1 root root 56 2010-11-10 15:07
/etc/alternatives/ttf-japanese-gothic.ttf ->
/usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf
chimagu:otf-ipafont-00302$ dpkg -l | grep otf-ipafont
ii otf-ipafont-mincho 00302-9
Japanese OpenType font set, IPA Mincho font
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6
diff --git a/debian/otf-ipafont-gothic.prerm b/debian/otf-ipafont-gothic.prerm
index d00b0cc..9e444b7 100644
--- a/debian/otf-ipafont-gothic.prerm
+++ b/debian/otf-ipafont-gothic.prerm
@@ -6,9 +6,7 @@ set -e
# font alternatives
ALT_GOTHIC_NAME="ttf-japanese-gothic"
-ALT_MINCHO_NAME="ttf-japanese-mincho"
GOTHIC_FONT_ENTRY="/usr/share/fonts/opentype/ipafont/ipag.ttf"
-MINCHO_FONT_ENTRY="/usr/share/fonts/opentype/ipafont/ipam.ttf"
# summary of how this script can be called:
@@ -29,7 +27,6 @@ case "$1" in
remove)
# alternative
update-alternatives --remove $ALT_GOTHIC_NAME.ttf $GOTHIC_FONT_ENTRY
- update-alternatives --remove $ALT_MINCHO_NAME.ttf $MINCHO_FONT_ENTRY
;;
Reply to: