aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2013-02-05 17:59:11 +0200
committerRoss Burton <ross.burton@intel.com>2013-04-30 11:06:21 +0100
commit8f8c5da07b3431e5a0838034084ce2f8e09762e3 (patch)
tree2da1f9c9f241082e7cdf49b4e7c44f599e92bc7a
parent036bf4dd800147f18b9b1451061e7e7a794300a7 (diff)
downloadopenembedded-core-8f8c5da07b3431e5a0838034084ce2f8e09762e3.zip
openembedded-core-8f8c5da07b3431e5a0838034084ce2f8e09762e3.tar.gz
openembedded-core-8f8c5da07b3431e5a0838034084ce2f8e09762e3.tar.bz2
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>
-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 a45df3a..259f3a5 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() + [""]):