Skip to contentSkip to conversation

image.py: Fix error in graph sorting

PATCH In review Pascal Bach 2 participants 2 messages Oct 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image.py: Fix error in graph sorting

The graph sorting algorithm for image dependencies does a look for an occurrence of a searched string instead of comparing the chunk to the searched string. This leads to the problem that ubifs is recognized as ubi aswell.

This fixes this by splitting up the string into chunks.

---
 meta/lib/oe/image.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/image.py +1 -1
index c9b9033..5e07187 100644
@@ -109,7 +109,7 @@ class ImageDepGraph(object):
         # remove added nodes from deps_array
         for item in group:
             for node in self.graph:
-                if item in self.graph[node]:
+                if item in self.graph[node].split():
                     self.deps_array[node][0] -= 1
 
             self.deps_array.pop(item, None)
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Pascal Bach

The graph sorting algorithm for image dependencies does a look for an occurrence of a searched string instead of comparing the chunk to the searched string. This leads to the problem that ubifs is recognized as ubi aswell.

This fixes this by splitting up the string into chunks.

Quoted 25 lines
---
 meta/lib/oe/image.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/image.py +1 -1
index c9b9033..5e07187 100644
@@ -109,7 +109,7 @@ class ImageDepGraph(object):
         # remove added nodes from deps_array
         for item in group:
             for node in self.graph:
-                if item in self.graph[node]:
+                if item in self.graph[node].split():
                     self.deps_array[node][0] -= 1
 
             self.deps_array.pop(item, None)
Signature · 7 lines
1.7.10.4

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core