[gnome-disk-utility] Update icon cache scriptlet
Christopher Aillon
caillon at fedoraproject.org
Sun May 8 02:08:22 UTC 2011
commit 8ff65ebbd0c06633feb9730d08fe71d20ce155ba
Author: Christopher Aillon <caillon at redhat.com>
Date: Sat May 7 19:07:39 2011 -0700
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 files 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 <caillon at redhat.com> - 3.0.0-2
+- Update icon cache scriptlet
+
* Mon Apr 4 2011 Matthias Clasen <mclasen at redhat.com> - 3.0.0-1
- Update to 3.0.0
More information about the scm-commits
mailing list