[glib2] Don't run gio-querymodules* in %postun if it no longer exists.

Ville Skyttä scop at fedoraproject.org
Mon Jan 24 18:26:34 UTC 2011


commit 8030ac8011c6859221afa37d053c978d0cd254a1
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Jan 24 19:47:00 2011 +0200

    Don't run gio-querymodules* in %postun if it no longer exists.

 glib2.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/glib2.spec b/glib2.spec
index b60e9bb..bc9509c 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,7 +3,7 @@
 Summary: A library of handy utility functions
 Name: glib2
 Version: 2.27.92
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtk.org
@@ -101,6 +101,7 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
 
 %postun
 /sbin/ldconfig
+[ ! -x %{_bindir}/gio-querymodules-%{__isa_bits} ] || \
 gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
 
 
@@ -165,6 +166,9 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
 
 
 %changelog
+* Mon Jan 24 2011 Ville Skyttä <ville.skytta at iki.fi> - 2.27.92-2
+- Don't run gio-querymodules* in %%postun if it no longer exists.
+
 * Sat Jan 22 2011 Matthias Clasen <mclasen at redhat.com> - 2.27.92-1
 - Update to 2.27.92
 - Drop update-gio-modules wrapper


More information about the scm-commits mailing list