rpms/mousetweaks/devel mousetweaks.spec,1.2,1.3

Matthias Clasen (mclasen) fedora-extras-commits at redhat.com
Wed May 14 17:44:59 UTC 2008


Author: mclasen

Update of /cvs/extras/rpms/mousetweaks/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8281

Modified Files:
	mousetweaks.spec 
Log Message:
Make the pre script andle missing schema files



Index: mousetweaks.spec
===================================================================
RCS file: /cvs/extras/rpms/mousetweaks/devel/mousetweaks.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mousetweaks.spec	13 May 2008 23:32:16 -0000	1.2
+++ mousetweaks.spec	14 May 2008 17:44:24 -0000	1.3
@@ -1,6 +1,6 @@
 Name:		mousetweaks
 Version:	2.23.2
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Mouse accessibility support for the GNOME desktop
 Group:		User Interface/Desktops
 License:	GPLv3 and GFDL
@@ -53,10 +53,13 @@
 %pre 
 if [ "$1" -gt 1 ]; then
   export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-  gconftool-2 --makefile-uninstall-rule \
-	%{_sysconfdir}/gconf/schemas/mouseweaks.schemas \
-	%{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas \
-	>/dev/null
+  for f in %{_sysconfdir}/gconf/schemas/mouseweaks.schemas \
+	   %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas ; 
+    do 
+      if [ -f $f ]; then 
+        gconftool-2 --makefile-uninstall-rule $f >/dev/null 
+      fi 
+    done 
 fi
 
 %post
@@ -89,6 +92,9 @@
 %doc %{_mandir}/man1/*
 
 %changelog
+* Wed May 14 2008 Matthias Clasen <mclasen at redhat.com> - 2.23.2-2
+- Make the %%pre script handle missing schema files
+
 * Tue May 13 2008 Matthias Clasen <mclasen at redhat.com> - 2.23.2-1
 - Update to 2.23.2
 




More information about the fedora-extras-commits mailing list