[Bug 202032] Review Request: efont-unicode-bdf: Unicode font by Electronic Font Open Laboratory
bugzilla at redhat.com
bugzilla at redhat.com
Thu Aug 10 20:37:11 UTC 2006
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.
Summary: Review Request: efont-unicode-bdf: Unicode font by Electronic Font Open Laboratory
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202032
------- Additional Comments From paul at all-the-johnsons.co.uk 2006-08-10 16:27 EST -------
%post
umask 133
mkfontdir %{fontdir} && /usr/sbin/chkfontpath -q -a %{fontdir}
fc-cache 2>/dev/null
%postun
fc-cache 2>/dev/null
Okay, there needs to be some wrappers around this
you need something like
%post
if [ -x %{_bindir}/mkfontdir ]; then
if [ - x %{_sbindir}/chkfontpath ]; then
%{_bindir}/mkfontdir %{fontdir} && %{_sbindir}/chkfontpath -q -a %{fontdir}
fi
fi
if [-x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache 2>/dev/null
fi
%postun
if [ "$1" = "0" ]; then
if [-x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache 2>/dev/null
fi
fi
Also, why are you using umask?
--
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Fedora-package-review
mailing list