]> code.ossystems Code Review - openembedded-core.git/commitdiff
manifest.py: sort package list
authorMichael Blättler <michael.blaettler@siemens.com>
Mon, 8 Jan 2018 07:42:38 +0000 (08:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Jan 2018 22:14:52 +0000 (22:14 +0000)
The entries of the created manifest file are always in a
different order. To ensure a deterministic build output
the entries are ordered alphabetically.

Signed-off-by: Michael Blättler <michael.blaettler@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/manifest.py

index 60c49be0e9982a7d2529dbf9c007494520650012..674303c86666b08b82d35253a42454286552216d 100644 (file)
@@ -274,8 +274,8 @@ class OpkgManifest(Manifest):
                     if pkg_list is not None:
                         pkgs[self.var_maps[self.manifest_type][var]] = self.d.getVar(var)
 
-            for pkg_type in pkgs:
-                for pkg in pkgs[pkg_type].split():
+            for pkg_type in sorted(pkgs):
+                for pkg in sorted(pkgs[pkg_type].split()):
                     manifest.write("%s,%s\n" % (pkg_type, pkg))
 
     def create_final(self):