[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH] package_rpm.bbclass: Accomodate dash when using arrays
From: richard.purdie () linuxfoundation ! org (Richard Purdie)
Date: 2012-07-31 11:22:32
Message-ID: 1343733752.9756.1.camel () ted
[Download RAW message or body]
On Sun, 2012-07-29 at 14:27 -0700, Khem Raj wrote:
> we were assigning local variable to an array coming through
> positional arguments. local is a non posix contruct thats
> also supported by dash luckily but operates differently in this
> case it exapnds the array before assignment. so
>
> local pkgs="$@"
>
> turns into pkgs=locale-base-en-us locale-base-en-gb
>
> ant we see errors
>
> run.do_rootfs.25593: 932: local: locale-base-en-gb: bad variable name
>
> So lets not use defining and assigning local in one go
> first define a local and then the assignment
>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
> meta/classes/package_rpm.bbclass | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Merged to master, thanks.
Richard
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic