[evolution: 11/12] Update the desktop database in the scriptlets

Bill Nottingham notting at fedoraproject.org
Thu Sep 27 15:23:23 UTC 2012


commit 53d67228306f6862e1ef22ce204814ef8fff2a0d
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Thu Sep 27 23:08:37 2012 +0800

    Update the desktop database in the scriptlets
    
    http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#desktop-database

 evolution.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/evolution.spec b/evolution.spec
index 852ad0c..939fcc5 100644
--- a/evolution.spec
+++ b/evolution.spec
@@ -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 || :


More information about the scm-commits mailing list