[gnome-packagekit] %postun: update-mime-database only on removal

Rex Dieter rdieter at fedoraproject.org
Fri Jun 27 17:38:07 UTC 2014


commit 2f0266a8bd52da4210a4a3d7372a2d37a8563038
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Fri Jun 27 12:38:13 2014 -0500

    %postun: update-mime-database only on removal

 gnome-packagekit.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gnome-packagekit.spec b/gnome-packagekit.spec
index de084c8..596b59f 100644
--- a/gnome-packagekit.spec
+++ b/gnome-packagekit.spec
@@ -1,7 +1,7 @@
 Summary:   Session applications to manage packages
 Name:      gnome-packagekit
 Version:   3.12.2
-Release:   4%{?dist}
+Release:   5%{?dist}
 License:   GPLv2+
 Group:     Applications/System
 URL:       http://www.packagekit.org
@@ -90,9 +90,9 @@ if [ $1 -eq 0 ] ; then
     touch --no-create %{_datadir}/icons/hicolor &>/dev/null
     gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
     glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+    update-mime-database %{_datadir}/mime &> /dev/null || :
 fi
 update-desktop-database %{_datadir}/applications &> /dev/null || :
-update-mime-database %{_datadir}/mime &> /dev/null || :
 
 %posttrans
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
@@ -147,6 +147,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %{_datadir}/man/man1/gpk-update-viewer.1.gz
 
 %changelog
+* Fri Jun 27 2014 Rex Dieter <rdieter at fedoraproject.org> 3.12.2-5
+- %%postun: update-mime-database only on removal
+
 * Fri Jun 27 2014 Bastien Nocera <bnocera at redhat.com> 3.12.2-4
 - Don't run update-mime-database in post, we don't ship mime XML
   files anymore.


More information about the scm-commits mailing list