From 0c4dbd8c0e7692ec70fda950645667bec4e158d7 Mon Sep 17 00:00:00 2001 From: Andrew Hughes Date: Thu, 10 Jul 2025 01:09:14 +0100 Subject: [PATCH] Exit if no fixes are obtained rather than try to run filters in openjdk_news.sh Resolves: RHEL-103209 --- java-21-openjdk.spec | 3 ++- scripts/openjdk_news.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/java-21-openjdk.spec b/java-21-openjdk.spec index 1a61b06..1684a97 100644 --- a/java-21-openjdk.spec +++ b/java-21-openjdk.spec @@ -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 - 1:21.0.8.0.1-0.1.ea - Update get_bundle_versions.sh to match other scripts diff --git a/scripts/openjdk_news.sh b/scripts/openjdk_news.sh index dcce190..9574915 100755 --- a/scripts/openjdk_news.sh +++ b/scripts/openjdk_news.sh @@ -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"