extract_utils: Fix makefile generation issues
* Fix makefile generation for packages that have set
a different target destination
* Thanks to rashed and javelinanddart for their help
in debugging and solving this issue.
Change-Id: I1f5a1abd6929e4a7e0ccd6370d3a3dd986f94fed
diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh
index 963b70e..6251810 100755
--- a/build/tools/extract_utils.sh
+++ b/build/tools/extract_utils.sh
@@ -655,6 +655,7 @@
# if line starts with a dash, it needs to be packaged
if [[ "$SPEC" =~ ^- ]]; then
+ SPEC=$(echo "${SPEC}" | sed 's/[^"]*://')
PRODUCT_PACKAGES_LIST+=("${SPEC#-}")
PRODUCT_PACKAGES_HASHES+=("$HASH")
else