specfile: suppress error messages from 'xset fp rehash'
More info: https://bugzilla.redhat.com/show_bug.cgi?id=1466254
This commit is contained in:
parent
6edc341bbc
commit
f1eb4acb2a
@ -154,7 +154,7 @@
|
||||
#
|
||||
# NOTE: 'xset' is an utility requiring X server to be running. Because of it,
|
||||
# the 'xset fp rehash' will fail to udpate its font database, when the
|
||||
# X server is stopped. This has been already reported:
|
||||
# X server is stopped. This has been already reported (and closed):
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1466254
|
||||
%global posttrans_scriptlet() \
|
||||
( \
|
||||
@ -162,7 +162,8 @@
|
||||
mkfontscale %{_fontdir} \
|
||||
mkfontdir %{_fontdir} \
|
||||
fc-cache %{_fontdir} \
|
||||
xset fp rehash \
|
||||
export DISPLAY=:0 \
|
||||
xset fp rehash &> /dev/null || : \
|
||||
\
|
||||
rm -rf %{tmpdir} \
|
||||
fi \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user