aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package_rpm.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index b4bc52e69b..50e9b31517 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -200,7 +200,12 @@ rpm_update_pkg () {
process_pkg_list_rpm() {
local insttype=$1
shift
- local pkgs="$@"
+ # $@ is special POSIX linear array can not be assigned
+ # to a local variable directly in dash since its separated by
+ # space and dash expands it before assignment
+ # and local x=1 2 3 and not x="1 2 3"
+ local pkgs
+ pkgs="$@"
local confbase=${INSTALL_CONFBASE_RPM}
echo -n > ${target_rootfs}/install/base_archs.pkglist