update scriptlets to follow current guidelines for updating icon cache
This commit is contained in:
parent
6962f7455e
commit
675137bf6b
@ -644,10 +644,7 @@ alternatives \
|
|||||||
|
|
||||||
update-desktop-database %{_datadir}/applications &> /dev/null || :
|
update-desktop-database %{_datadir}/applications &> /dev/null || :
|
||||||
|
|
||||||
touch --no-create %{_datadir}/icons/hicolor
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
|
|
||||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -661,13 +658,16 @@ fi
|
|||||||
|
|
||||||
update-desktop-database %{_datadir}/applications &> /dev/null || :
|
update-desktop-database %{_datadir}/applications &> /dev/null || :
|
||||||
|
|
||||||
touch --no-create %{_datadir}/icons/hicolor
|
if [ $1 -eq 0 ] ; then
|
||||||
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
ext=.gz
|
ext=.gz
|
||||||
alternatives \
|
alternatives \
|
||||||
@ -900,6 +900,9 @@ exit 0
|
|||||||
%doc %{buildoutputdir}/images/j2sdk-image/jre/LICENSE
|
%doc %{buildoutputdir}/images/j2sdk-image/jre/LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 10 2013 Adam Williamson <awilliam@redhat.com>
|
||||||
|
- update scriptlets to follow current guidelines for updating icon cache
|
||||||
|
|
||||||
* Tue Apr 30 2013 Omair Majid <omajid@redhat.com> 1:1.8.0.0-0.5.b87
|
* Tue Apr 30 2013 Omair Majid <omajid@redhat.com> 1:1.8.0.0-0.5.b87
|
||||||
- Update to b87
|
- Update to b87
|
||||||
- Remove all rhino support; use nashorn instead
|
- Remove all rhino support; use nashorn instead
|
||||||
|
Loading…
Reference in New Issue
Block a user