Patchwork [1/1] package_rpm.bbclass: fix bashims at rpm_common_comand() method

login
register
mail settings
Submitter Otavio Salvador
Date March 17, 2012, 5:50 p.m.
Message ID <b4527ef9e2fe5d238e512011c667e91ff83ca20f.1332006643.git.otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/23763/
State Accepted
Commit 43d48d60613418acbaf671c7e8c6cd7d1f6b176b
Headers show

Comments

Otavio Salvador - March 17, 2012, 5:50 p.m.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Daiane Angolini <daiane.angolini@freescale.com>
---
 meta/classes/package_rpm.bbclass |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Richard Purdie - March 19, 2012, 11:48 p.m.
On Sat, 2012-03-17 at 17:50 +0000, Otavio Salvador wrote:
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Daiane Angolini <daiane.angolini@freescale.com>
> ---
>  meta/classes/package_rpm.bbclass |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 68313ec..80b1619 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -151,7 +151,6 @@  resolve_package_rpm () {
 rpm_common_comand () {
 
     local target_rootfs="${INSTALL_ROOTFS_RPM}"
-    local extra_args="$@"
 
     ${RPM} --root ${target_rootfs} \
         --predefine "_rpmds_sysinfo_path ${target_rootfs}/etc/rpm/sysinfo" \
@@ -160,7 +159,7 @@  rpm_common_comand () {
         -D "_dbpath ${rpmlibdir}" \
         --noparentdirs --nolinktos \
         -D "__dbi_txn create nofsync private" \
-        -D "_cross_scriptlet_wrapper ${WORKDIR}/scriptlet_wrapper" $extra_args
+        -D "_cross_scriptlet_wrapper ${WORKDIR}/scriptlet_wrapper" $@
 }
 
 # install or remove the pkg