diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-19 10:13:10 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-19 10:13:10 +0000 |
commit | 5716a14bf4366d0c8fe2526759ca3500b4985bc5 (patch) | |
tree | 155b85844e878909ae93598f7cf62b424c20d227 | |
parent | 0846d1f4981cba477ccc36a3cbd9c5766b5dbe0f (diff) | |
download | openembedded-core-5716a14bf4366d0c8fe2526759ca3500b4985bc5.tar.gz openembedded-core-5716a14bf4366d0c8fe2526759ca3500b4985bc5.tar.bz2 openembedded-core-5716a14bf4366d0c8fe2526759ca3500b4985bc5.tar.xz openembedded-core-5716a14bf4366d0c8fe2526759ca3500b4985bc5.zip |
package.bbclass: Fix runtime_maping_rename so version information isn't removed
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | meta/classes/package.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index a1e369e0e..890cacee1 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -202,12 +202,12 @@ def runtime_mapping_rename (varname, d): #bb.note("%s before: %s" % (varname, bb.data.getVar(varname, d, True))) new_depends = [] - for depend in bb.utils.explode_deps(bb.data.getVar(varname, d, True) or ""): + deps = bb.utils.explode_dep_versions(bb.data.getVar(varname, d, True) or "") + for depend in deps: # Have to be careful with any version component of the depend - split_depend = depend.split(' (') - new_depend = get_package_mapping(split_depend[0].strip(), d) - if len(split_depend) > 1: - new_depends.append("%s (%s" % (new_depend, split_depend[1])) + new_depend = get_package_mapping(depend, d) + if deps[depend]: + new_depends.append("%s (%s)" % (new_depend, deps[depend])) else: new_depends.append(new_depend) |