From: Richard Purdie Date: Mon, 9 Dec 2013 10:18:31 +0000 (+0000) Subject: data: Ensure we add the contains keys in a particular order X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f453bb11d72afc90a986ac604b3477d97eaf9a8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git data: Ensure we add the contains keys in a particular order If we don't sort the data, the values can reorder changing the signatures meaning we get confused builds and significant cache misses. Signed-off-by: Richard Purdie --- diff --git a/lib/bb/data.py b/lib/bb/data.py index 3d2c6a4975f..58408036ddd 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -301,9 +301,9 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, d): def handle_contains(value, contains, d): newvalue = "" - for k in contains: + for k in sorted(contains): l = (d.getVar(k, True) or "").split() - for word in contains[k]: + for word in sorted(contains[k]): if word in l: newvalue += "\n%s{%s} = Set" % (k, word) else: