From 7a714a3e7eb2c37e5f86d2c56d6ec309c9286da6 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 30 Jan 2024 11:46:42 -0500 Subject: [PATCH] jjb: Support release specific distrobuilder files Change-Id: I9f692b483356cc7f6d40f5e39372c7f633b623d3 Signed-off-by: Kienan Stewart --- pipelines/images/distrobuild.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pipelines/images/distrobuild.sh b/pipelines/images/distrobuild.sh index b5e624f..7c2e161 100644 --- a/pipelines/images/distrobuild.sh +++ b/pipelines/images/distrobuild.sh @@ -111,6 +111,12 @@ EXTENSIONS=( ) IMAGE_FILE='' for IMAGE_DIR in "${IMAGE_DIRS[@]}" ; do + for EXTENSION in "${EXTENSIONS[@]}" ; do + if [ -f "${IMAGE_DIR}/${OS}-${RELEASE}.${EXTENSION}" ] ; then + IMAGE_FILE="${IMAGE_DIR}/${OS}-${RELEASE}.${EXTENSION}" + break 2; + fi + done for EXTENSION in "${EXTENSIONS[@]}" ; do if [ -f "${IMAGE_DIR}/${OS}.${EXTENSION}" ] ; then IMAGE_FILE="${IMAGE_DIR}/${OS}.${EXTENSION}" -- 2.34.1