Skip %post if getopt is missing

Related: RHEL-44988
This commit is contained in:
Adam Williamson 2023-10-07 08:59:46 -07:00 committed by Frantisek Krenzelok
parent 81a090f89a
commit 318794a69b

View File

@ -314,7 +314,7 @@ fi
#fi
# if ln is available, go ahead and run the ca-legacy and update
# scripts. If not, wait until %posttrans.
if [ -x %{_bindir}/ln ]; then
if [ -x %{_bindir}/ln ] && [ -x %{_bindir}/getopt ]; then
%{_bindir}/ca-legacy install
%{_bindir}/update-ca-trust
fi
@ -395,6 +395,9 @@ fi
%changelog
* Sat Oct 07 2023 Adam Williamson <awilliam@redhat.com> - 2024.2.68_v8.0.302-91.0
- Skip %post if getopt is missing (recent change made update-ca-trust use it)
* Fri Sep 29 2023 Clemens Lang <cllang@redhat.com> - 2024.2.68_v8.0.302-91.0
- update-ca-trust: Support --output and non-root operation (rhbz#2241240)