extract-utils: Fix for `sh_binary`
* srcs, prefer isn't available in sh_binary
Change-Id: I5f94432748aba4a417520ba850b7a9c4d7dddbe7
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
diff --git a/extract_utils.sh b/extract_utils.sh
index 428b597..cc80d22 100644
--- a/extract_utils.sh
+++ b/extract_utils.sh
@@ -527,12 +527,15 @@
fi
printf '\tname: "%s",\n' "$PKGNAME"
printf '\towner: "%s",\n' "$VENDOR"
- printf '\tsrcs: ["%s/bin/%s"],\n' "$SRC" "$FILE"
if [ "$EXTENSION" != "sh" ]; then
+ printf '\tsrcs: ["%s/bin/%s"],\n' "$SRC" "$FILE"
printf '\tcheck_elf_files: false,\n'
printf '\tstrip: {\n'
printf '\t\tnone: true,\n'
printf '\t},\n'
+ printf '\tprefer: true,\n'
+ else
+ printf '\tsrc: "%s/bin/%s",\n' "$SRC" "$FILE"
fi
unset EXTENSION
else
@@ -553,7 +556,7 @@
printf '\tsub_dir: "%s",\n' "$DIRNAME"
fi
fi
- if [ "$CLASS" = "SHARED_LIBRARIES" ] || [ "$CLASS" = "EXECUTABLES" ] ; then
+ if [ "$CLASS" = "SHARED_LIBRARIES" ]; then
printf '\tprefer: true,\n'
fi
if [ "$EXTRA" = "priv-app" ]; then