summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2013-02-05 17:59:11 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 09:37:26 +0000
commit10f05d5b5866317a8c2de09455b548ff848afecd (patch)
tree3d6ab8aef9ee716b2aae5456e5eeff3465f37b4e /meta/lib/oe
parentf1dc17dc3271049ebce5024ecb6a2eaa59a8480b (diff)
downloadpoky-10f05d5b5866317a8c2de09455b548ff848afecd.tar.gz
classextend.py: use explode_dep_versions2 in order to preserve versions too
(From OE-Core rev: a5136a9bf70f3a6d7d0b599678cb901c8e45c7f7) Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/classextend.py9
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):
63 deps = self.d.getVar(varname, True) 63 deps = self.d.getVar(varname, True)
64 if not deps: 64 if not deps:
65 return 65 return
66 deps = bb.utils.explode_deps(deps) 66 deps = bb.utils.explode_dep_versions2(deps)
67 newdeps = [] 67 newdeps = {}
68 for dep in deps: 68 for dep in deps:
69 newdeps.append(self.map_depends(dep)) 69 newdeps[self.map_depends(dep)] = deps[dep]
70 self.d.setVar(varname, " ".join(newdeps)) 70
71 self.d.setVar(varname, bb.utils.join_deps(newdeps, False))
71 72
72 def map_packagevars(self): 73 def map_packagevars(self):
73 for pkg in (self.d.getVar("PACKAGES", True).split() + [""]): 74 for pkg in (self.d.getVar("PACKAGES", True).split() + [""]):