Skip to content

Commit 39a3944

Browse files
committed
fix(HONOR): append 'honor_product_base_version' to description
Change-Id: I67ea0aed2dc4406df00344dc4b824c84687e0ca7
1 parent c884fd5 commit 39a3944

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

extract_and_push.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ echo "[INFO] Extracting properties..."
590590
sendTG_edit_wrapper temporary "${MESSAGE_ID}" "${MESSAGE}"$'\n'"<code>Extracting properties...</code>" > /dev/null
591591

592592
oplus_pipeline_key=$(rg -m1 -INoP --no-messages "(?<=^ro.oplus.pipeline_key=).*" my_manifest/build*.prop)
593+
honor_product_base_version=$(rg -m1 -INoP --no-messages "(?<=^ro.comp.hl.product_base_version=).*" product_h/etc/prop/local.prop)
593594

594595
flavor=$(rg -m1 -INoP --no-messages "(?<=^ro.build.flavor=).*" {vendor,system,system/system}/build.prop)
595596
[[ -z ${flavor} ]] && flavor=$(rg -m1 -INoP --no-messages "(?<=^ro.vendor.build.flavor=).*" vendor/build*.prop)
@@ -754,10 +755,14 @@ is_ab=$(echo "$is_ab" | head -1)
754755

755756
codename=$(echo "$codename" | tr ' ' '_')
756757

757-
if [ -z "$oplus_pipeline_key" ]; then
758-
branch=$(echo "$description" | head -1 | tr ' ' '-')
758+
# Append 'oplus_pipeline_key' in case it's set
759+
if [ -n "${oplus_pipeline_key}" ]; then
760+
branch=$(echo "${description}"--"${oplus_pipeline_key}" | head -1 | tr ' ' '-')
761+
# Append 'honor_product_base_version' in case it's set
762+
elif [ -z "${honor_product_base_version}" ]; then
763+
branch=$(echo "${description}"--"${honor_product_base_version}" | head -1 | tr ' ' '-')
759764
else
760-
branch=$(echo "$description"--"$oplus_pipeline_key" | head -1 | tr ' ' '-')
765+
branch=$(echo "$description" | head -1 | tr ' ' '-')
761766
fi
762767

763768
repo_subgroup=$(echo "$brand" | tr '[:upper:]' '[:lower:]')

0 commit comments

Comments
 (0)