From: Mark Hatle Date: Sat, 2 Mar 2013 01:14:57 +0000 (-0600) Subject: package_rpm.bbclass: Fix translate_smart_to_oe arch comparison X-Git-Tag: rev_ivi_2015_02_04~13522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ce444b2b554e884399d0693b8f70175e23c01ee;p=scm%2Fbb%2Ftizen-distro.git package_rpm.bbclass: Fix translate_smart_to_oe arch comparison When the OE arch is of the format "foo_bar-foobar" the previous comparison routine did not selectively translate the '-' causing a failed comparison. In order to work around this issue, we -always- compare the RPM translated version of the package architectures. (From OE-Core rev: caf798da9502c1c4967d13a4450fe02b1e7b4850) Signed-off-by: Mark Hatle Signed-off-by: Richard Purdie --- diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index c0ba54d..697bb36 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -93,7 +93,8 @@ translate_smart_to_oe() { while [ -n "$1" ]; do cmp_arch=$1 shift - if [ "$arch" = "$cmp_arch" -o "$fixed_arch" = "$cmp_arch" ]; then + fixed_cmp_arch=`echo "$cmp_arch" | tr _ -` + if [ "$fixed_arch" = "$fixed_cmp_arch" ]; then if [ "$mlib" = "default" ]; then new_pkg="$pkg" new_arch=$cmp_arch @@ -114,7 +115,7 @@ translate_smart_to_oe() { # break fi done - if [ "$found" = "1" ] && [ "$arch" = "$cmp_arch" -o "$fixed_arch" = "$cmp_arch" ]; then + if [ "$found" = "1" ] && [ "$fixed_arch" = "$fixed_cmp_arch" ]; then break fi done