From 8ff65ebbd0c06633feb9730d08fe71d20ce155ba Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Sat, 7 May 2011 19:07:39 -0700 Subject: [PATCH] Update icon cache scriptlet Don't regenerate the cache twice on upgrades http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache --- gnome-disk-utility.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gnome-disk-utility.spec b/gnome-disk-utility.spec index 1c40298..acaff77 100644 --- a/gnome-disk-utility.spec +++ b/gnome-disk-utility.spec @@ -13,7 +13,7 @@ Summary: Disk management application Name: gnome-disk-utility Version: 3.0.0 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://git.gnome.org/cgit/gnome-disk-utility @@ -143,8 +143,10 @@ touch --no-create %{_datadir}/icons/hicolor || : /sbin/ldconfig %postun libs -touch --no-create %{_datadir}/icons/hicolor || : -gtk-update-icon-cache -q %{_datadir}/icons/hicolor || : +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi /sbin/ldconfig %posttrans libs @@ -212,6 +214,9 @@ gtk-update-icon-cache -q %{_datadir}/icons/hicolor || : %{_libdir}/nautilus/extensions-3.0/*.so %changelog +* Sat May 07 2011 Christopher Aillon - 3.0.0-2 +- Update icon cache scriptlet + * Mon Apr 4 2011 Matthias Clasen - 3.0.0-1 - Update to 3.0.0