Patchwork [1/1] package_rpm.bbclass: fix one typo

login
register
mail settings
Submitter Yu Ke
Date Aug. 1, 2011, 11:54 a.m.
Message ID <f598d89680b56218a1f0c50844b1e6823c7baca9.1312199543.git.ke.yu@intel.com>
Download mbox | patch
Permalink /patch/8963/
State New, archived
Headers show

Comments

Yu Ke - Aug. 1, 2011, 11:54 a.m.
fix the MLPREFIX referrence typo which cause multilib rpm
do_rootfs failure

CC: Mark Hatle <mark.hatle@windriver.com>

Signed-off-by: Yu Ke <ke.yu@intel.com>
---
 meta/classes/package_rpm.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Richard Purdie - Aug. 1, 2011, 1:17 p.m.
On Mon, 2011-08-01 at 19:54 +0800, Yu Ke wrote:
> fix the MLPREFIX referrence typo which cause multilib rpm
> do_rootfs failure
> 
> CC: Mark Hatle <mark.hatle@windriver.com>
> 
> Signed-off-by: Yu Ke <ke.yu@intel.com>
> ---
>  meta/classes/package_rpm.bbclass |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard
Mark Hatle - Aug. 1, 2011, 2:37 p.m.
acked-by:  Mark Hatle <mark.hatle@windriver.com>

On 8/1/11 6:54 AM, Yu Ke wrote:
> fix the MLPREFIX referrence typo which cause multilib rpm
> do_rootfs failure
> 
> CC: Mark Hatle <mark.hatle@windriver.com>
> 
> Signed-off-by: Yu Ke <ke.yu@intel.com>
> ---
>  meta/classes/package_rpm.bbclass |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
> index 0377100..ded744b 100644
> --- a/meta/classes/package_rpm.bbclass
> +++ b/meta/classes/package_rpm.bbclass
> @@ -248,7 +248,7 @@ package_install_internal_rpm () {
>  			echo "Processing $pkg..."
>  
>  			archvar=base_package_archs
> -			ml_pkg=$(echo ${pkg} | sed "s,$^{MLPREFIX}\(.*\),\1,")
> +			ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,")
>  			if [ "${ml_pkg}" != "${pkg}" ]; then
>  				archvar=ml_package_archs
>  			fi

Patch

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 0377100..ded744b 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -248,7 +248,7 @@  package_install_internal_rpm () {
 			echo "Processing $pkg..."
 
 			archvar=base_package_archs
-			ml_pkg=$(echo ${pkg} | sed "s,$^{MLPREFIX}\(.*\),\1,")
+			ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,")
 			if [ "${ml_pkg}" != "${pkg}" ]; then
 				archvar=ml_package_archs
 			fi