Skip to contentSkip to conversation

rm_work: sort the value of do_build dependencies

PATCH New [email protected] 1 participant 1 message Mar 7, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rm_work: sort the value of do_build dependencies

From: Ming Liu <[email protected]>

This fixes some 'basehash changed' errors when rm_work is being inherited.

---
 meta/classes/rm_work.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/classes/rm_work.bbclass +1 -2
index 10e134b..c478f4a 100644
@@ -164,8 +164,7 @@ python inject_rm_work() {
 
     # Determine what do_build depends upon, without including do_build
     # itself or our own special do_rm_work_all.
-    deps = set(bb.build.preceedtask('do_build', True, d))
-    deps.difference_update(('do_build', 'do_rm_work_all'))
+    deps = sorted((set(bb.build.preceedtask('do_build', True, d))).difference(('do_build', 'do_rm_work_all')) or "")
 
     # deps can be empty if do_build doesn't exist, e.g. *-inital recipes
     if not deps:
Signature · 1 line
2.7.4