From 04563775b3d60a6645da3382ffa5ea38b76bae9a Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Tue, 27 Sep 2022 14:52:41 +0200 Subject: [PATCH] extract_utils: fix generating system/bin & system/etc blueprint Previously the wrong variables were checked to see if the prefix matches, so e.g. no cc_prebuilt_binary were generated for those binaries. Change-Id: I744c6f6a4584921a26547478ac14a160c56e07b7 --- extract_utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extract_utils.sh b/extract_utils.sh index 6297411..ff64af3 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -782,7 +782,7 @@ function write_product_packages() { write_blueprint_packages "ETC" "" "" "ETC" >> "$ANDROIDBP" fi local S_ETC=( $(prefix_match "system/etc/") ) - if [ "${#ETC[@]}" -gt "0" ]; then + if [ "${#S_ETC[@]}" -gt "0" ]; then write_blueprint_packages "ETC" "system" "" "S_ETC" >> "$ANDROIDBP" fi local V_ETC=( $(prefix_match "vendor/etc/") ) @@ -808,7 +808,7 @@ function write_product_packages() { write_blueprint_packages "EXECUTABLES" "" "" "BIN" >> "$ANDROIDBP" fi local S_BIN=( $(prefix_match "system/bin/") ) - if [ "${#BIN[@]}" -gt "0" ]; then + if [ "${#S_BIN[@]}" -gt "0" ]; then write_blueprint_packages "EXECUTABLES" "system" "" "S_BIN" >> "$ANDROIDBP" fi local V_BIN=( $(prefix_match "vendor/bin/") )