On Thu, 9 Nov 2006, Thijs Kinkhorst wrote:
On Thu, 2006-11-09 at 20:56 +0100, Tomas Pospisek wrote:
Seems like the "-t" option doesn't work in defoma-font:
Hrm, right. I've reported this as a separate bug against that package.
Is it correct ot call unregister on a file that doesn't exist (only the
_Bold, _Italic and _Bold_Italic variants of the font exist...), as you do
above?
The documentation is not clear about that. We've just moved the font
away. Maybe it would indeed be better to switch the statements:
unregister first, then move away. It's a temporary measure of course,
and we should be as robust as possible about half-deleted fonts and the
like.
Here's a deb with the switched statements. Please try (I still can't
reproduce the scenario easily):
http://people.debian.org/~thijs/msttcorefonts_1.5~pre0_all.deb
Looks still the same - the "-t" option seems to have no effect whatsoever:
(same procedure as before - first tried your package then got the tarball
and added "set -x"):
# dpkg -i ../msttcorefonts_1.5~pre0_all.deb
(Reading database ... 274572 files and directories currently installed.)
Preparing to replace msttcorefonts 1.2 (using
.../msttcorefonts_1.5~pre0_all.deb) ...
+ '[' -e /var/lib/msttcorefonts/ms-fonts ']'
+ mkdir -p /usr/share/fonts/truetype/msttcorefonts/
++ cat /var/lib/msttcorefonts/ms-fonts
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Andale_Mono.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial_Black.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial_Bold_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Arial_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Comic_Sans_MS.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Comic_Sans_MS_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Courier_New.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Courier_New_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Courier_New_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Courier_New_Bold_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Georgia.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Georgia_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Georgia_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Georgia_Bold_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Impact.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Times_New_Roman.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Times_New_Roman_Bold.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Times_New_Roman_Bold_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Times_New_Roman_Italic.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Trebuchet_MS.ttf ']'
+ for f in '$(cat /var/lib/msttcorefonts/ms-fonts)'
+ '[' -e /usr/share/fonts/truetype/Trebuchet_MS_Bold.ttf ']'
+ defoma-font -t unregister truetype
/usr/share/fonts/truetype/Trebuchet_MS_Bold.ttf
W: /usr/share/fonts/truetype/Trebuchet_MS_Bold.ttf: not registered.
dpkg: error processing ../msttcorefonts_1.5~pre0_all.deb (--install):
subprocess pre-installation script returned error exit status 1
warning: /usr/share/fonts/X11/truetype does not exist or is not a
directory
warning: /usr/lib/X11/fonts/truetype does not exist or is not a directory
These fonts were provided by Microsoft "in the interest of cross-
platform compatibility". This is no longer the case, but they are
still available from third parties.
You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form, including changes
to the file name or packaging format.
All fonts downloaded and installed.
Errors were encountered while processing:
../msttcorefonts_1.5~pre0_all.deb
$ ls -l /usr/share/fonts/truetype/Trebuchet_MS_Bold.ttf
-rw-r--r-- 1 root root 123828 May 9 2001
/usr/share/fonts/truetype/Trebuchet_MS_Bold.ttf
# defoma-font -t unregister truetype
/usr/share/fonts/truetype/Trebuchet_MS_Bold.ttf
W: /usr/share/fonts/truetype/Trebuchet_MS_Bold.ttf: not registered.
# echo $?
1
--
--------------------------------------------------------
Tomas Pospisek
http://sourcepole.com - Linux & Open Source Solutions
--------------------------------------------------------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]