sweet: Prevent adding same dependency twice in blob_fixup

Change-Id: Idedeb51e027a09f64a29ac67a3a2f2a0594213f6
This commit is contained in:
LuK1337 2022-10-15 23:05:18 +02:00 committed by basamaryan
parent 874f6c1753
commit 36ac0b73ea
No known key found for this signature in database
GPG Key ID: 707BA6C82329E8F9

View File

@ -9,7 +9,7 @@
function blob_fixup() {
case "${1}" in
vendor/lib64/camera/components/com.qti.node.watermark.so)
"${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
grep -q "libpiex_shim.so" "${2}" || "${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
;;
esac
}