Skip to contentSkip to conversation

data_smart.py: don't reorder internal bitbake variables when calculating hash

PATCH New Patrick Ohly 1 participant 1 message Nov 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 data_smart.py: don't reorder internal bitbake variables when calculating hash

Commit 260ced745 added __BBTASKS, __BBANONFUNCS, __BBHANDLERS to the data that gets hashed, but only after reordering these lists. The intention probably was to make the hash deterministic, but that's unnecessary (the content of the variables should already be deterministic) and hides potential reasons that might require re-parsing.

---
 lib/bb/data_smart.py | 1 -
 1 file changed, 1 deletion(-)
lib/bb/data_smart.py +0 -1
index f100446..b35ee9b 100644
@@ -956,7 +956,6 @@ class DataSmart(MutableMapping):
 
         for key in ["__BBTASKS", "__BBANONFUNCS", "__BBHANDLERS"]:
             bb_list = d.getVar(key, False) or []
-            bb_list.sort()
             data.update({key:str(bb_list)})
 
             if key == "__BBANONFUNCS":
Signature · 1 line
2.1.4