This patch changes the gtk-icon-cache postrun script so that it
only tries to run gtk-update-icon-cache in directories that
contain an index.theme file.

Laca

Index: include/icon-cache.script
===================================================================
--- include/icon-cache.script   (revision 12687)
+++ include/icon-cache.script   (working copy)
@@ -1,4 +1,6 @@
 ( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
   echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
-  echo 'ls -d %{_datadir}/icons/* | xargs
-l1 /usr/bin/gtk-update-icon-cache'
+  echo 'for dir in %{_datadir}/icons/*; do';
+  echo '  test -f $dir/index.theme && /usr/bin/gtk-update-icon-cache
$dir';
+  echo 'done';
 ) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS



Reply via email to