X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fbuild_inf_centos%2Fbuild_inf_centos.sh;fp=scripts%2Fbuild_inf_centos%2Fbuild_inf_centos.sh;h=aff1431b15674bf80147a3d51480b330cbecadc0;hb=313543f34998d2aeac48bb133d9d7c53d5fc058a;hp=cb34833dd161f4c9fcd53c27da699a5260990c91;hpb=cd382eb0b2f175bc3701754f95201f6ea1512873;p=pti%2Frtp.git 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}