summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2012-04-05 19:41:47 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-06 01:08:44 +0100
commit0e66900cbe6438b9b3ecfef1c348a5575bd27c41 (patch)
tree5c33c888df10692d0c0770652acae7f7fc525918 /meta/classes
parent794225ed3b6fe7878595b7452259cc9bf1973213 (diff)
downloadopenembedded-core-0e66900cbe6438b9b3ecfef1c348a5575bd27c41.tar.gz
openembedded-core-0e66900cbe6438b9b3ecfef1c348a5575bd27c41.tar.bz2
openembedded-core-0e66900cbe6438b9b3ecfef1c348a5575bd27c41.zip
package_ipk.bbclass: fixing muttilib prefix extracting.
Fixed an error in multilib prefix extracting. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_ipk.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index e7d038fbad..0e4fea8d53 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -74,7 +74,7 @@ package_tryout_install_multilib_ipk() {
local pkgname_prefix="${item}-"
local pkgname_len=${#pkgname_prefix}
for pkg in ${INSTALL_PACKAGES_MULTILIB_IPK}; do
- local pkgname=$(echo $pkg | awk -v var=$pkgname_len '{ pkgname=substr($1, 1, var - 1); print pkgname; }' )
+ local pkgname=$(echo $pkg | awk -v var=$pkgname_len '{ pkgname=substr($1, 1, var); print pkgname; }' )
if [ ${pkgname} = ${pkgname_prefix} ]; then
selected_pkg="${selected_pkg} ${pkg}"
fi
@@ -97,7 +97,7 @@ split_multilib_packages() {
for item in ${MULTILIB_VARIANTS}; do
local pkgname_prefix="${item}-"
local pkgname_len=${#pkgname_prefix}
- local pkgname=$(echo $pkg | awk -v var=$pkgname_len '{ pkgname=substr($1, 1, var - 1); print pkgname; }' )
+ local pkgname=$(echo $pkg | awk -v var=$pkgname_len '{ pkgname=substr($1, 1, var); print pkgname; }' )
if [ ${pkgname} = ${pkgname_prefix} ]; then
is_multilib=1
break