extract-utils: Make symlink_target account for moved blobs
It can happen that a blob is being moved for example from /product
to /system_ext. Obviously the desired symlink_target associated
with that blob must respect that.
Example:
product/lib64/libimscamera_jni.so:system_ext/lib64/libimscamera_jni.so;SYMLINK=system_ext/priv-app/ims/lib/arm64/libimscamera_jni.so
Resulting diff:
install_symlink {
name: "libimscamera_jni_libimscamera_jni_symlink64",
system_ext_specific: true,
installed_location: "priv-app/ims/lib/arm64/libimscamera_jni.so",
- symlink_target: "/product/lib64/libimsmedia_jni.so",
+ symlink_target: "/system_ext/lib64/libimscamera_jni.so",
}
Change-Id: I4a2580be1d5da4c0f35ae47029e16431f72343db
diff --git a/extract_utils.sh b/extract_utils.sh
index cbc9d9d..42844d4 100644
--- a/extract_utils.sh
+++ b/extract_utils.sh
@@ -950,7 +950,7 @@
fi
for LINE in "${PRODUCT_SYMLINKS_LIST[@]}"; do
- FILE=$(src_file "$LINE")
+ FILE=$(target_file "$LINE")
if [[ "$LINE" =~ '/lib64/' || "$LINE" =~ '/lib/arm64/' ]]; then
ARCH="64"
elif [[ "$LINE" =~ '/lib/' ]]; then