Print bundle updates and backouts at end of openjdk_news.sh output
- Refer user to get_bundle_versions.sh when bundle updates are found by openjdk_news.sh Related: RHEL-119329
This commit is contained in:
		
							parent
							
								
									69e7afabc9
								
							
						
					
					
						commit
						faec47b00c
					
				| @ -2971,6 +2971,8 @@ cjc.mainProgram(args) | |||||||
| - * get_bundle_versions.sh: shellcheck: Double-quote variable references (SC2086) | - * get_bundle_versions.sh: shellcheck: Double-quote variable references (SC2086) | ||||||
| - * get_bundle_versions.sh: shellcheck: Drop use of cat and pass file to awk directly (SC2002) | - * get_bundle_versions.sh: shellcheck: Drop use of cat and pass file to awk directly (SC2002) | ||||||
| - Add OpenJDK 8u support to get_bundle_versions.sh | - Add OpenJDK 8u support to get_bundle_versions.sh | ||||||
|  | - Print bundle updates and backouts at end of openjdk_news.sh output | ||||||
|  | - Refer user to get_bundle_versions.sh when bundle updates are found by openjdk_news.sh | ||||||
| - Related: RHEL-119329 | - Related: RHEL-119329 | ||||||
| 
 | 
 | ||||||
| * Sun Oct 05 2025 Antonio Vieiro <avieirov@redhat.com> - 1:1.8.0.462.b08-5 | * Sun Oct 05 2025 Antonio Vieiro <avieirov@redhat.com> - 1:1.8.0.462.b08-5 | ||||||
|  | |||||||
| @ -72,18 +72,25 @@ done | |||||||
| sort "${TMPDIR}/fixes2" "${TMPDIR}/fixes3" | uniq > "${TMPDIR}/fixes" | sort "${TMPDIR}/fixes2" "${TMPDIR}/fixes3" | uniq > "${TMPDIR}/fixes" | ||||||
| rm -f "${TMPDIR}/fixes2" "${TMPDIR}/fixes3" | rm -f "${TMPDIR}/fixes2" "${TMPDIR}/fixes3" | ||||||
| 
 | 
 | ||||||
| if grep -i 'backout' "${TMPDIR}/fixes" |  | ||||||
| then |  | ||||||
|     echo "WARNING: Review the preceding backouts" |  | ||||||
| fi |  | ||||||
| if grep -iE ': update.*(freetype|gif|harfbuzz|lcms|jpeg|png|zlib)' "${TMPDIR}/fixes" |  | ||||||
| then |  | ||||||
|     echo "WARNING: Review the preceding with respect to bundled provides" |  | ||||||
| fi |  | ||||||
| 
 |  | ||||||
| echo "In ${TMPDIR}/fixes:" | echo "In ${TMPDIR}/fixes:" | ||||||
| cat "${TMPDIR}/fixes" | cat "${TMPDIR}/fixes" | ||||||
| 
 | 
 | ||||||
|  | printf "\nChecking for backouts..."; | ||||||
|  | if grep -i 'backout' "${TMPDIR}/fixes" > "${TMPDIR}/backouts"; then | ||||||
|  |     printf "found.\nWARNING: Review the following backouts:\n" | ||||||
|  |     cat "${TMPDIR}/backouts"; | ||||||
|  | else | ||||||
|  |     echo "No apparent backouts."; | ||||||
|  | fi | ||||||
|  | printf "\nChecking for bundled library updates..."; | ||||||
|  | if grep -iE ': update.*(freetype|gif|harfbuzz|lcms|jpeg|png|zlib)' "${TMPDIR}/fixes" > "${TMPDIR}/bundles"; then | ||||||
|  |     printf "found.\nWARNING: Review the following with respect to bundled provides:\n"; | ||||||
|  |     cat "${TMPDIR}/bundles"; | ||||||
|  |     echo "Compare the output of $(dirname "${0}")/get_bundle_versions.sh with the RPM using the JDK source tree" | ||||||
|  | else | ||||||
|  |     echo "No apparent library updates."; | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| # Local Variables: | # Local Variables: | ||||||
| # compile-command: "shellcheck openjdk_news.sh" | # compile-command: "shellcheck openjdk_news.sh" | ||||||
| # fill-column: 80 | # fill-column: 80 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user