Update the desktop database in the scriptlets

http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#desktop-database
This commit is contained in:
Mathieu Bridon 2012-09-27 23:08:37 +08:00 committed by Bill Nottingham
parent 9f175884e0
commit 53d6722830

View File

@ -300,10 +300,12 @@ grep -v "/usr/share/locale" evolution-%{evo_base_version}.lang > help.lang
%post
/sbin/ldconfig
/usr/bin/update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
/sbin/ldconfig
/usr/bin/update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :