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:
parent
fa77706511
commit
8ff65ebbd0
@ -13,7 +13,7 @@
|
|||||||
Summary: Disk management application
|
Summary: Disk management application
|
||||||
Name: gnome-disk-utility
|
Name: gnome-disk-utility
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://git.gnome.org/cgit/gnome-disk-utility
|
URL: http://git.gnome.org/cgit/gnome-disk-utility
|
||||||
@ -143,8 +143,10 @@ touch --no-create %{_datadir}/icons/hicolor || :
|
|||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun libs
|
%postun libs
|
||||||
touch --no-create %{_datadir}/icons/hicolor || :
|
if [ $1 -eq 0 ] ; then
|
||||||
gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||||
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
fi
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%posttrans libs
|
%posttrans libs
|
||||||
@ -212,6 +214,9 @@ gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
|
|||||||
%{_libdir}/nautilus/extensions-3.0/*.so
|
%{_libdir}/nautilus/extensions-3.0/*.so
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Apr 4 2011 Matthias Clasen <mclasen@redhat.com> - 3.0.0-1
|
||||||
- Update to 3.0.0
|
- Update to 3.0.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user