Update icon cache scriptlet

Don't regenerate the cache twice on upgrades
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
This commit is contained in:
Christopher Aillon 2011-05-07 19:07:39 -07:00
parent fa77706511
commit 8ff65ebbd0

View File

@ -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@redhat.com> - 3.0.0-2
- Update icon cache scriptlet
* Mon Apr 4 2011 Matthias Clasen <mclasen@redhat.com> - 3.0.0-1
- Update to 3.0.0