diff options
Diffstat (limited to 'meta/classes')
-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 a1e369e0e3..890cacee10 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -202,12 +202,12 @@ def runtime_mapping_rename (varname, d): | |||
202 | #bb.note("%s before: %s" % (varname, bb.data.getVar(varname, d, True))) | 202 | #bb.note("%s before: %s" % (varname, bb.data.getVar(varname, d, True))) |
203 | 203 | ||
204 | new_depends = [] | 204 | new_depends = [] |
205 | for depend in bb.utils.explode_deps(bb.data.getVar(varname, d, True) or ""): | 205 | deps = bb.utils.explode_dep_versions(bb.data.getVar(varname, d, True) or "") |
206 | for depend in deps: | ||
206 | # Have to be careful with any version component of the depend | 207 | # Have to be careful with any version component of the depend |
207 | split_depend = depend.split(' (') | 208 | new_depend = get_package_mapping(depend, d) |
208 | new_depend = get_package_mapping(split_depend[0].strip(), d) | 209 | if deps[depend]: |
209 | if len(split_depend) > 1: | 210 | new_depends.append("%s (%s)" % (new_depend, deps[depend])) |
210 | new_depends.append("%s (%s" % (new_depend, split_depend[1])) | ||
211 | else: | 211 | else: |
212 | new_depends.append(new_depend) | 212 | new_depends.append(new_depend) |
213 | 213 | ||