SPECS: gazpacho.spec - don't run update-desktop-database twice

freetz freetz at pld-linux.org
Wed Oct 26 10:16:45 CEST 2005


Author: freetz                       Date: Wed Oct 26 08:16:45 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- don't run update-desktop-database twice

---- Files affected:
SPECS:
   gazpacho.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/gazpacho.spec
diff -u SPECS/gazpacho.spec:1.2 SPECS/gazpacho.spec:1.3
--- SPECS/gazpacho.spec:1.2	Wed Oct 26 10:13:23 2005
+++ SPECS/gazpacho.spec	Wed Oct 26 10:16:40 2005
@@ -70,8 +70,10 @@
 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
 
 %postun
-umask 022
-[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2
+if [ $1 = 0]; then
+    umask 022
+    [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2
+fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
@@ -90,6 +92,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/10/26 08:16:40  freetz
+- don't run update-desktop-database twice
+
 Revision 1.2  2005/10/26 08:13:23  freetz
 - desktop patch added, place icon in generic location, remove unpackaged
   files, run update-desktop-database if found, rel.2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gazpacho.spec?r1=1.2&r2=1.3&f=u




More information about the pld-cvs-commit mailing list