rpms/xtide/devel xtide.spec,1.42,1.43

Mamoru Tasaka mtasaka at fedoraproject.org
Tue Feb 24 15:30:49 UTC 2009


Author: mtasaka

Update of /cvs/extras/rpms/xtide/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23087

Modified Files:
	xtide.spec 
Log Message:
Change scriptlets


Index: xtide.spec
===================================================================
RCS file: /cvs/extras/rpms/xtide/devel/xtide.spec,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- xtide.spec	24 Feb 2009 15:26:34 -0000	1.42
+++ xtide.spec	24 Feb 2009 15:30:18 -0000	1.43
@@ -209,17 +209,20 @@
 
 %post
 touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
 
 /sbin/chkconfig --add xttpd
+exit 0
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-
 if [ $1 -ge 1 ] ; then
    /sbin/service xttpd condrestart &>/dev/null || :
 fi
+[ $1 -eq 0 ] || exit 0
+
+touch --no-create %{_datadir}/icons/hicolor || :
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+exit 0
+
 
 %pre
 getent group xttpd &>/dev/null || \
@@ -239,6 +242,11 @@
    /sbin/service xttpd stop &>/dev/null
    /sbin/chkconfig --del xttpd
 fi
+exit 0
+
+%posttrans
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+exit 0
 
 %files common
 %doc README.fedora
@@ -277,7 +285,7 @@
 
 %changelog
 * Wed Feb 25 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 2.10-4
-- F-11: Mass rebuild
+- GTK icon cache updating script updates
 
 * Thu Jan  8 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 2.10-3
 - Update harmonics data to 20081228




More information about the scm-commits mailing list