diff mbox series

[isar-cip-core,2/3] scripts/deploy-cip-core.sh: Include release name in dpkg status filename

Message ID 20240812070303.1206167-3-Sai.Sathujoda@toshiba-tsip.com (mailing list archive)
State Superseded
Headers show
Series Updates to sync with latest debian-cve-checker | expand

Commit Message

Sai.Sathujoda@toshiba-tsip.com Aug. 12, 2024, 7:03 a.m. UTC
From: sai ashrith sathujoda <sai.sathujoda@toshiba-tsip.com>

This commit includes release name as part of dpkg status filename so that
it can be passed as "--suite" to cve_checker.py script.

Signed-off-by: sai ashrith sathujoda <sai.sathujoda@toshiba-tsip.com>
---
 scripts/deploy-cip-core.sh | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/scripts/deploy-cip-core.sh b/scripts/deploy-cip-core.sh
index c75f2d1..6e4dfd7 100755
--- a/scripts/deploy-cip-core.sh
+++ b/scripts/deploy-cip-core.sh
@@ -71,4 +71,10 @@  fi
 #     * cve-reports: folder to store the cve-reports generated from the dpkg status files
 #       * they can be linked from the release website
 DPKG_STATUS_FILENAME=${CI_JOB_NAME#build:}.dpkg_status
+
+# As default release name is not included in CI_JOB_NAME, it is appended to dpkg status file name
+# For further use in  run-cve-checks.sh script to get the right suite
+if ! echo "$CI_JOB_NAME" | grep -q "$1"; then
+	DPKG_STATUS_FILENAME=${CI_JOB_NAME#build:}-$1.dpkg_status
+fi
 aws s3 cp --no-progress build/tmp/deploy/images/"$TARGET"/cip-core-image-*.dpkg_status s3://download.cip-project.org/cip-core/cve-checks/dpkg-status/"$DPKG_STATUS_FILENAME"