Skip to content

Commit

Permalink
fix(HONOR): append 'honor_product_base_version' to description
Browse files Browse the repository at this point in the history
Change-Id: I67ea0aed2dc4406df00344dc4b824c84687e0ca7
  • Loading branch information
AntoninoScordino committed Feb 10, 2025
1 parent c884fd5 commit 39a3944
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions extract_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ echo "[INFO] Extracting properties..."
sendTG_edit_wrapper temporary "${MESSAGE_ID}" "${MESSAGE}"$'\n'"<code>Extracting properties...</code>" > /dev/null

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

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

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

if [ -z "$oplus_pipeline_key" ]; then
branch=$(echo "$description" | head -1 | tr ' ' '-')
# Append 'oplus_pipeline_key' in case it's set
if [ -n "${oplus_pipeline_key}" ]; then
branch=$(echo "${description}"--"${oplus_pipeline_key}" | head -1 | tr ' ' '-')
# Append 'honor_product_base_version' in case it's set
elif [ -z "${honor_product_base_version}" ]; then
branch=$(echo "${description}"--"${honor_product_base_version}" | head -1 | tr ' ' '-')
else
branch=$(echo "$description"--"$oplus_pipeline_key" | head -1 | tr ' ' '-')
branch=$(echo "$description" | head -1 | tr ' ' '-')
fi

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

0 comments on commit 39a3944

Please # to comment.