diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-09 14:13:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 10:08:30 +0100 |
commit | 855a2d21503856af392ab2d54ccfa270505ba142 (patch) | |
tree | 41284d77a2aeab6b09405b48d007182c5bc50d6a | |
parent | ecd1bfed5534f83b775a6c79092c04bd13c3af0a (diff) | |
download | openembedded-core-855a2d21503856af392ab2d54ccfa270505ba142.tar.gz openembedded-core-855a2d21503856af392ab2d54ccfa270505ba142.tar.bz2 openembedded-core-855a2d21503856af392ab2d54ccfa270505ba142.zip |
lib/classextend: Fix determinism issue
The ordering of dependency variables needs to be deterministic to avoid task checksums
changing. Use an OrderedDict to achieve this.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/classextend.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py index 5107ecde26..4c8a00070c 100644 --- a/meta/lib/oe/classextend.py +++ b/meta/lib/oe/classextend.py @@ -1,3 +1,5 @@ +import collections + class ClassExtender(object): def __init__(self, extname, d): self.extname = extname @@ -77,7 +79,7 @@ class ClassExtender(object): self.d.setVar("EXTENDPKGV", orig) return deps = bb.utils.explode_dep_versions2(deps) - newdeps = {} + newdeps = collections.OrderedDict() for dep in deps: newdeps[self.map_depends(dep)] = deps[dep] |