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

Resolves: RHEL-103210
This commit is contained in:
Andrew Hughes 2025-07-10 01:09:14 +01:00
parent f79ba1f530
commit d6256bcf5d
2 changed files with 7 additions and 1 deletions

View File

@ -2568,8 +2568,9 @@ require "copy_jdk_configs.lua"
- Sync the copy of the portable specfile with the latest update
- Add timezone data update check to openjdk_news.sh
- Add duplicate check to openjdk_news.sh
- Exit if no fixes are obtained rather than try to run filters in openjdk_news.sh
- Related: RHEL-101799
- Related: RHEL-103210
- Resolves: RHEL-103210
* Wed Jul 09 2025 Andrew Hughes <gnu.andrew@redhat.com> - 1:21.0.8.0.1-0.1.ea
- Update get_bundle_versions.sh to match other scripts

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"