diff options
author | Michael Blättler <michael.blaettler@siemens.com> | 2018-01-08 08:42:38 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-11 10:26:07 +0000 |
commit | d7d59e75cfe645b7a76720f0e282fe5e8005b135 (patch) | |
tree | 23057fb58de83bf49528691587c592a0f1520b1c | |
parent | e80d3b6b479732dd2847dd2d4a74a640f3a5675f (diff) | |
download | poky-d7d59e75cfe645b7a76720f0e282fe5e8005b135.tar.gz |
manifest.py: sort package list
The entries of the created manifest file are always in a
different order. To ensure a deterministic build output
the entries are ordered alphabetically.
(From OE-Core rev: f3b753943d0c886a2a158247d2ea02867f3c0dae)
Signed-off-by: Michael Blättler <michael.blaettler@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/manifest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/manifest.py b/meta/lib/oe/manifest.py index 60c49be0e9..674303c866 100644 --- a/meta/lib/oe/manifest.py +++ b/meta/lib/oe/manifest.py | |||
@@ -274,8 +274,8 @@ class OpkgManifest(Manifest): | |||
274 | if pkg_list is not None: | 274 | if pkg_list is not None: |
275 | pkgs[self.var_maps[self.manifest_type][var]] = self.d.getVar(var) | 275 | pkgs[self.var_maps[self.manifest_type][var]] = self.d.getVar(var) |
276 | 276 | ||
277 | for pkg_type in pkgs: | 277 | for pkg_type in sorted(pkgs): |
278 | for pkg in pkgs[pkg_type].split(): | 278 | for pkg in sorted(pkgs[pkg_type].split()): |
279 | manifest.write("%s,%s\n" % (pkg_type, pkg)) | 279 | manifest.write("%s,%s\n" % (pkg_type, pkg)) |
280 | 280 | ||
281 | def create_final(self): | 281 | def create_final(self): |