File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -590,6 +590,7 @@ echo "[INFO] Extracting properties..."
590590sendTG_edit_wrapper temporary " ${MESSAGE_ID} " " ${MESSAGE} " $' \n ' " <code>Extracting properties...</code>" > /dev/null
591591
592592oplus_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
594595flavor=$( 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
755756codename=$( 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 ' ' ' -' )
759764else
760- branch=$( echo " $description " -- " $oplus_pipeline_key " | head -1 | tr ' ' ' -' )
765+ branch=$( echo " $description " | head -1 | tr ' ' ' -' )
761766fi
762767
763768repo_subgroup=$( echo " $brand " | tr ' [:upper:]' ' [:lower:]' )
You can’t perform that action at this time.
0 commit comments