From: Jackie Huang Date: Tue, 31 May 2022 02:36:18 +0000 (+0800) Subject: build_inf_centos: add ORAN_REL in issue files X-Git-Tag: f-release~3 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=313543f34998d2aeac48bb133d9d7c53d5fc058a;p=pti%2Frtp.git build_inf_centos: add ORAN_REL in issue files Issue-ID: INF-274 Signed-off-by: Jackie Huang Change-Id: I69d36da3b0e9f0dad562e87cf27765ac0817afd5 (cherry picked from commit edc9d1319445b1192eaa03bc67a39ce0faa67ff9) --- diff --git a/scripts/build_inf_centos/build_inf_centos.sh b/scripts/build_inf_centos/build_inf_centos.sh index cb34833..aff1431 100755 --- a/scripts/build_inf_centos/build_inf_centos.sh +++ b/scripts/build_inf_centos/build_inf_centos.sh @@ -25,6 +25,8 @@ SRC_ORAN_BRANCH="master" SRC_ORAN_URL="https://gerrit.o-ran-sc.org/r/pti/rtp" +ORAN_REL="ORAN F-Release (6.0)" + SCRIPTS_DIR=$(dirname $(readlink -f $0)) SCRIPTS_NAME=$(basename $0) TIMESTAMP=`date +"%Y%m%d_%H%M%S"` @@ -239,7 +241,12 @@ patch_src () { echo_step_start "Some source codes need to be patched for INF project" sed -i "s|/import/mirrors|${STX_MIRROR_DIR}|" \ - $MY_REPO/stx/metal/installer/pxe-network-installer/centos/build_srpm.data + ${MY_REPO}/stx/metal/installer/pxe-network-installer/centos/build_srpm.data + + grep -q "${ORAN_REL}" \ + ${MY_REPO}/stx/config-files/centos-release-config/files/issue* \ + || sed -i "s/\(@PLATFORM_RELEASE@\)/\1 - ${ORAN_REL}/" \ + ${MY_REPO}/stx/config-files/centos-release-config/files/issue* # Apply meta patches cd ${SRC_META_PATCHES}