forked from pool/java-1_8_0-openjdk
This commit is contained in:
parent
488bf032a0
commit
4daea3de95
@ -985,15 +985,27 @@ then
|
||||
fi
|
||||
|
||||
%post javadoc
|
||||
# in some settings, the %{_javadocdir}/%{sdklnk}/api does not exist
|
||||
# and the update-alternatives call ends up in error. So, filter this
|
||||
# cases out.
|
||||
if [ -d %{_javadocdir}/%{sdklnk}/api ]
|
||||
then
|
||||
update-alternatives \
|
||||
--install %{_javadocdir}/java javadocdir %{_javadocdir}/%{sdklnk}/api \
|
||||
%{priority}
|
||||
fi
|
||||
|
||||
%postun javadoc
|
||||
if [ $1 -eq 0 ]
|
||||
then
|
||||
# in some settings, the %{_javadocdir}/%{sdklnk}/api does not exist
|
||||
# and the update-alternatives call ends up in error. So, filter this
|
||||
# cases out.
|
||||
if [ -d %{_javadocdir}/%{sdklnk}/api ]
|
||||
then
|
||||
update-alternatives --remove javadocdir %{_javadocdir}/%{sdklnk}/api
|
||||
fi
|
||||
fi
|
||||
|
||||
%post accessibility
|
||||
# create links to java-atk-wrapper
|
||||
|
Loading…
x
Reference in New Issue
Block a user