On Thu, 2015-09-10 at 13:54 +0200, Martin Jansa wrote:
> * trying to pass foo="a b" through postinst_intercept ends
>   with the actual script header to containing:
>   b
>   foo=a
>   which fails because "b" command doesn't exist.
> 
> Signed-off-by: Martin Jansa <martin.ja...@gmail.com>

Patch queued in my joshuagl/fido-next tree - thanks!

Joshua

http://cgit.openembedded.org/openembedded-core-contrib/log/?h=joshuagl/
fido-next

> ---
>  scripts/postinst-intercepts/postinst_intercept | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/postinst-intercepts/postinst_intercept
> b/scripts/postinst-intercepts/postinst_intercept
> index a257198..b18e806 100755
> --- a/scripts/postinst-intercepts/postinst_intercept
> +++ b/scripts/postinst-intercepts/postinst_intercept
> @@ -48,7 +48,7 @@ if [ -n "$pkgs_line" ]; then
>               sed -i -e "s/##PKGS:.*/\0${package_name} /"
> $intercept_script
>       fi
>  else
> -     for var in $@; do
> +     for var in "$@"; do
>               sed -i -e "\%^#\!/bin/.*sh%a $var" $intercept_script
>       done
>       echo "##PKGS: ${package_name} " >> $intercept_script
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to