diff options
author | Constantin Musca <constantinx.musca@intel.com> | 2013-02-05 17:59:11 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 09:35:04 +0000 |
commit | a5136a9bf70f3a6d7d0b599678cb901c8e45c7f7 (patch) | |
tree | e6d8f4c5e0b9b7952eac557717c094f3188fee25 /meta | |
parent | 88959e42411a40b15fe8907da00a97a7732a9cc1 (diff) | |
download | openembedded-core-a5136a9bf70f3a6d7d0b599678cb901c8e45c7f7.tar.gz openembedded-core-a5136a9bf70f3a6d7d0b599678cb901c8e45c7f7.tar.bz2 openembedded-core-a5136a9bf70f3a6d7d0b599678cb901c8e45c7f7.zip |
classextend.py: use explode_dep_versions2 in order to preserve versions too
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/classextend.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py index 61cbb8fdf3..c37a8963c5 100644 --- a/meta/lib/oe/classextend.py +++ b/meta/lib/oe/classextend.py @@ -63,11 +63,12 @@ class ClassExtender(object): deps = self.d.getVar(varname, True) if not deps: return - deps = bb.utils.explode_deps(deps) - newdeps = [] + deps = bb.utils.explode_dep_versions2(deps) + newdeps = {} for dep in deps: - newdeps.append(self.map_depends(dep)) - self.d.setVar(varname, " ".join(newdeps)) + newdeps[self.map_depends(dep)] = deps[dep] + + self.d.setVar(varname, bb.utils.join_deps(newdeps, False)) def map_packagevars(self): for pkg in (self.d.getVar("PACKAGES", True).split() + [""]): |