summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-19 10:13:10 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-20 17:57:16 +0000
commit1a6a15e568dbcae6876bbe823c9d23d74f16bcad (patch)
tree378f397a78067c2d60093799dc4a4c5710c8a7d5
parentc7edcc03169bc9b8a40afe645b3bca9956eb3682 (diff)
downloadpoky-1a6a15e568dbcae6876bbe823c9d23d74f16bcad.tar.gz
poky-1a6a15e568dbcae6876bbe823c9d23d74f16bcad.tar.bz2
poky-1a6a15e568dbcae6876bbe823c9d23d74f16bcad.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.bbclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 523d7aeaee..d492b1004a 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -210,12 +210,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)