Exit if no fixes are obtained rather than try to run filters in openjdk_news.sh

Resolves: RHEL-119331
This commit is contained in:
Andrew Hughes 2025-07-10 01:09:14 +01:00
parent 1595b9b497
commit 77bdd45532
2 changed files with 7 additions and 1 deletions

View File

@ -2724,7 +2724,8 @@ cjc.mainProgram(args)
- Refer user to get_bundle_versions.sh when bundle updates are found by openjdk_news.sh
- Add timezone data update check to openjdk_news.sh
- Add duplicate check to openjdk_news.sh
- Related: RHEL-119331
- Exit if no fixes are obtained rather than try to run filters in openjdk_news.sh
- Resolves: RHEL-119331
* Sun Oct 05 2025 Antonio Vieiro <avieirov@redhat.com> - 1:1.8.0.462.b08-4
- Add script to obtain bundled library versions from OpenJDK sources

View File

@ -73,6 +73,11 @@ sort "${TMPDIR}/fixes2" "${TMPDIR}/fixes3" > "${TMPDIR}/fixes4"
uniq "${TMPDIR}/fixes4" > "${TMPDIR}/fixes"
rm -f "${TMPDIR}/fixes2" "${TMPDIR}/fixes3"
if ! [ -s "${TMPDIR}/fixes" ] ; then
echo "Failed to obtain fixes.";
exit 3;
fi
echo "In ${TMPDIR}/fixes:"
cat "${TMPDIR}/fixes"