cooker: Sort pn-buildlist
v2 cover cooker: Sort pn-buildlist
From: Robert Yang <[email protected]>
* V2:
Add '\n' to the end of file.
// Robert
The following changes since commit 91e268b11ed683bd197026f9b36001f6d54ee05c:
tests/fetch: Use our own mirror of mobile-broadband-provider to decouple from gnome gitlab (2024-10-29 22:27:42 +0000)
are available in the Git repository at:
https://github.com/robertlinux/bitbake rbt/sort
https://github.com/robertlinux/bitbake/tree/rbt/sort
Robert Yang (1):
cooker: Sort pn-buildlist
lib/bb/cooker.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1
PATCH v2 1/1 cooker: Sort pn-buildlist
From: Robert Yang <[email protected]>
So that we can compare the different pn-buildlist easily.
Signed-off-by Robert Yang <[email protected]>
--- lib/bb/cooker.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
lib/bb/cooker.py +5 -4
@@ -900,10 +900,11 @@ class BBCooker: depgraph = self.generateTaskDepTreeData(pkgs_to_build, task) - with open('pn-buildlist', 'w') as f: - for pn in depgraph["pn"]: - f.write(pn + "\n") - logger.info("PN build list saved to 'pn-buildlist'") + pns = depgraph["pn"].keys() + if pns: + with open('pn-buildlist', 'w') as f: + f.write("%s\n" % "\n".join(sorted(pns))) + logger.info("PN build list saved to 'pn-buildlist'") # Remove old format output files to ensure no confusion with stale data try:
Signature · 1 line
2.25.1