[gnome-continuous-yocto/gnomeostree-3.28-rocko: 171/8267] lib/classextend: Fix determinism issue
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 171/8267] lib/classextend: Fix determinism issue
- Date: Sat, 16 Dec 2017 20:03:10 +0000 (UTC)
commit 69cf7b3273beeaad6d52c4f718cd4b0d53845e97
Author: Richard Purdie <richard purdie linuxfoundation org>
Date: Mon May 9 14:13:44 2016 +0100
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.
(From OE-Core rev: 855a2d21503856af392ab2d54ccfa270505ba142)
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
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 5107ecd..4c8a000 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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]