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

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

View File

@ -2569,8 +2569,9 @@ cjc.mainProgram(args)
- 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-101798
- Related: RHEL-103209
- Resolves: RHEL-103209
* 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"