* [PATCH v2 0/1] cooker: Sort pn-buildlist
@ 2024-11-01 11:58 liezhi.yang
2024-11-01 11:58 ` [PATCH v2 1/1] " liezhi.yang
0 siblings, 1 reply; 2+ messages in thread
From: liezhi.yang @ 2024-11-01 11:58 UTC (permalink / raw)
To: bitbake-devel
From: Robert Yang <liezhi.yang@windriver.com>
* 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(-)
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v2 1/1] cooker: Sort pn-buildlist
2024-11-01 11:58 [PATCH v2 0/1] cooker: Sort pn-buildlist liezhi.yang
@ 2024-11-01 11:58 ` liezhi.yang
0 siblings, 0 replies; 2+ messages in thread
From: liezhi.yang @ 2024-11-01 11:58 UTC (permalink / raw)
To: bitbake-devel
From: Robert Yang <liezhi.yang@windriver.com>
So that we can compare the different pn-buildlist easily.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
lib/bb/cooker.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 2e809866408..d58c0f575ce 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -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:
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-01 11:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-01 11:58 [PATCH v2 0/1] cooker: Sort pn-buildlist liezhi.yang
2024-11-01 11:58 ` [PATCH v2 1/1] " liezhi.yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.