fedora-cvs-commits@redhat.com
[Top] [All Lists]

rpms/openoffice.org/devel openoffice.org.spec,1.528,1.529

Subject: rpms/openoffice.org/devel openoffice.org.spec,1.528,1.529
From:
Date: Tue, 8 Nov 2005 06:57:22 -0500
Author: caolanm

Update of /cvs/dist/rpms/openoffice.org/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv2005

Modified Files:
        openoffice.org.spec 
Log Message:
rh#172505# Postinstall and postuninstall scripts fails with No theme index file 
error


Index: openoffice.org.spec
===================================================================
RCS file: /cvs/dist/rpms/openoffice.org/devel/openoffice.org.spec,v
retrieving revision 1.528
retrieving revision 1.529
diff -u -r1.528 -r1.529
--- openoffice.org.spec 8 Nov 2005 08:55:06 -0000       1.528
+++ openoffice.org.spec 8 Nov 2005 11:57:15 -0000       1.529
@@ -2784,18 +2784,26 @@
 %post core
 update-desktop-database -q %{_datadir}/applications
 for theme in hicolor; do
-  touch --no-create %{_datadir}/icons/$theme
   if [ -x /usr/bin/gtk-update-icon-cache ]; then
-    gtk-update-icon-cache -q %{_datadir}/icons/$theme
+    if test -f "%{_datadir}/icons/$theme"; then
+      if test -f "%{_datadir}/icons/$theme/index.theme"; then
+        touch --no-create %{_datadir}/icons/$theme
+        gtk-update-icon-cache -q %{_datadir}/icons/$theme
+      fi
+    fi
   fi
 done
 
 %postun core
 update-desktop-database -q %{_datadir}/applications
 for theme in hicolor; do
-  touch --no-create %{_datadir}/icons/$theme
   if [ -x /usr/bin/gtk-update-icon-cache ]; then
-    gtk-update-icon-cache -q %{_datadir}/icons/$theme
+    if test -f "%{_datadir}/icons/$theme"; then
+      if test -f "%{_datadir}/icons/$theme/index.theme"; then
+        touch --no-create %{_datadir}/icons/$theme
+        gtk-update-icon-cache -q %{_datadir}/icons/$theme
+      fi
+    fi
   fi
 done
 

-- 
fedora-cvs-commits mailing list
fedora-cvs-commits@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-cvs-commits

<Prev in Thread] Current Thread [Next in Thread>
  • rpms/openoffice.org/devel openoffice.org.spec,1.528,1.529, fedora-cvs-commits <=