diff --git a/gnome-icon-theme.spec b/gnome-icon-theme.spec index 6a9f9e9..b442166 100644 --- a/gnome-icon-theme.spec +++ b/gnome-icon-theme.spec @@ -1,7 +1,7 @@ Summary: Base gnome icons Name: gnome-icon-theme Version: 2.12.0 -Release: 1 +Release: 2 Source0: %{name}-%{version}.tar.bz2 Source1: external-icons-2.10.1-2.tar.gz License: GPL @@ -77,7 +77,9 @@ rm -rf $RPM_BUILD_ROOT %post for dir in /usr/share/icons/*; do if test -d "$dir"; then - /usr/bin/gtk-update-icon-cache --quiet $dir + if test -f "$dir/index.theme"; then + /usr/bin/gtk-update-icon-cache --quiet $dir + fi fi done @@ -88,6 +90,10 @@ done %{_datadir}/pkgconfig/gnome-icon-theme.pc %changelog +* Sat Oct 1 2005 Matthias Clasen - 2.12.0-2 +- Only call gtk-update-icon-cache on directories which have a + theme index file + * Thu Sep 8 2005 Matthias Clasen - 2.12.0-1 - update to 2.12.0