[evolution/f18] Update the desktop database in the scriptlets

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


commit e172530438685c360cbf653f2bb3c211abdb8c14
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