Skip to contentSkip to conversation

cooker: Sort pn-buildlist

PATCH Superseded [email protected] 1 participant 3 messages Nov 1, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 2e80986640..37a5cada28 100644
@@ -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
#2 lore raw
Quoted 15 lines · Robert Yang via lists.openembedded.org

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 +0 -0
index 2e80986640..37a5cada28 100644
@@ -900,10 +900,11 @@ class BBCooker:
 

lib/bb/cooker.py class BBCooker: · line 906

Quoted 10 lines
lib/bb/cooker.py +4 -4
          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)))

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]]
-=-=-=-=-=-=-=-=-=-=-=-