Patchwork classextend.py: use explode_dep_versions2 in order to preserve versions too

login
register
mail settings
Submitter Constantin Musca
Date Feb. 5, 2013, 3:59 p.m.
Message ID <1360079951-3674-1-git-send-email-constantinx.musca@intel.com>
Download mbox | patch
Permalink /patch/44133/
State Accepted
Commit 10f05d5b5866317a8c2de09455b548ff848afecd
Headers show

Comments

Constantin Musca - Feb. 5, 2013, 3:59 p.m.
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
---
 meta/lib/oe/classextend.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Patch

diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py
index 61cbb8f..c37a896 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() + [""]):