cooker: Sort pn-buildlist
cover cooker: Sort pn-buildlist
From: Robert Yang <[email protected]>
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 1/1 cooker: Sort pn-buildlist
From: Robert Yang <[email protected]>
So that we can compare the different pn-buildlist easily.
--- 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("\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
Quoted 15 lines · Robert Yang via lists.openembedded.org
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 +0
-0@@ -900,10 +900,11 @@ class BBCooker:
lib/bb/cooker.py class BBCooker: · line 906
Quoted 10 lines
lib/bb/cooker.py +4
-4depgraph = 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("\n".join(sorted(pns)))
Sorry, the above line missed a '\n' in the eol, I will send a V2 for it.
// Robert
Quoted 15 lines
lib/bb/cooker.py +1
-1+ logger.info("PN build list saved to 'pn-buildlist'") # Remove old format output files to ensure no confusion with stale data try: -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#16765): https://lists.openembedded.org/g/bitbake-devel/message/16765
Mute This Topic: https://lists.openembedded.org/mt/109330363/7304958
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-