From: Jan Kiszka <
jan.k...@siemens.com>
According to c9326cc1edc9, we had issues with producing a deterministic
order for those config elements. As sorting is a rather blunt method of
resolving it and as ordering plays a role in bitbake's processing of the
configs, we should try harder to provide more user control over that.
A key role in this play ordered dictionaries that report their content
the same order it was added. With Python 3.6 now the minimal supported
version, this is the default behavior. So it's safe to remove sorted().
Closes:
https://github.com/siemens/kas/issues/36
Reported-by: Marius Kriegerowski <
marius.kr...@gfz-potsdam.de>
Signed-off-by: Jan Kiszka <
jan.k...@siemens.com>
---
kas/config.py | 2 +-
kas/libcmds.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/kas/config.py b/kas/config.py
index 0119f68..0473431 100644
--- a/kas/config.py
+++ b/kas/config.py
@@ -128,7 +128,7 @@ class Config:
Returns the local.conf header
"""
header = ''
- for key, value in sorted(self._config.get(header_name, {}).items()):
+ for key, value in self._config.get(header_name, {}).items():
header += '# {}\n{}\n'.format(key, value)
return header
diff --git a/kas/libcmds.py b/kas/libcmds.py
index d65048d..750c973 100644
--- a/kas/libcmds.py
+++ b/kas/libcmds.py
@@ -245,8 +245,8 @@ class WriteBBConfig(Command):
fds.write(ctx.config.get_bblayers_conf_header())
fds.write('BBLAYERS ?= " \\\n ')
fds.write(' \\\n '.join(
- sorted(layer for repo in ctx.config.get_repos()
- for layer in repo.layers)))
+ layer for repo in ctx.config.get_repos()
+ for layer in repo.layers))
fds.write('"\n')
def _write_local_conf(ctx):
--
2.26.2