[Fedora-packaging] Packaging/ScriptletSnippets, fonts section: no "|| :" at the end of the fc-cache call?

Thorsten Leemhuis fedora at leemhuis.info
Wed Aug 29 06:50:23 UTC 2007


Hi all,

the Fonts section on
http://fedoraproject.org/wiki/Packaging/ScriptletSnippets
contains this:

> Use this when your package installs new fonts.
>
> {{{
> %post
> if [ -x %{_bindir}/fc-cache ]; then
>   %{_bindir}/fc-cache %{_datadir}/fonts
> fi
> %postun
> if [ "$1" = "0" ]; then
>   if [ -x %{_bindir}/fc-cache ]; then
>     %{_bindir}/fc-cache %{_datadir}/fonts
>   fi
> fi
> }}}

Is there a specific reason why there is no "|| :" at the end of
"%{_bindir}/fc-cache %{_datadir}/fonts"? I think there should be one, as
this happened to me during a F-7 -> rawhide update (that's still in
progress while I'm writing this mail, so more errors might show up):

>   Updating  : bitstream-vera-fonts         ################### [ 383/1850] 
> /usr/share/fonts/default/Type1: failed to write cache
> /usr/share/fonts/default/ghostscript: failed to write cache
> error: %post(bitstream-vera-fonts-1.10-8.noarch) scriptlet failed, exit status 2
[...]
>   Updating  : fontconfig                   ################### [ 416/1850] 
> /usr/share/fonts/default/Type1: failed to write cache
> /usr/share/fonts/default/ghostscript: failed to write cache
> /usr/share/X11/fonts/Type1: failed to write cache
> error: %post(fontconfig-2.4.2-5.fc8.x86_64) scriptlet failed, exit status 3
[...]
>   Updating  : dejavu-lgc-fonts             ################### [ 548/1850] 
> /usr/share/fonts/default/ghostscript: failed to write cache
> error: %post(dejavu-lgc-fonts-2.19-1.noarch) scriptlet failed, exit status 1
>   Updating  : liberation-fonts             ################### [ 549/1850] 
> /usr/share/fonts/default/ghostscript: failed to write cache
> error: %post(liberation-fonts-0.2-1.fc8.noarch) scriptlet failed, exit status 1

CU
knurd




More information about the Fedora-packaging mailing list