summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 2e80986640..d58c0f575c 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -900,10 +900,11 @@ class BBCooker:
900 900
901 depgraph = self.generateTaskDepTreeData(pkgs_to_build, task) 901 depgraph = self.generateTaskDepTreeData(pkgs_to_build, task)
902 902
903 with open('pn-buildlist', 'w') as f: 903 pns = depgraph["pn"].keys()
904 for pn in depgraph["pn"]: 904 if pns:
905 f.write(pn + "\n") 905 with open('pn-buildlist', 'w') as f:
906 logger.info("PN build list saved to 'pn-buildlist'") 906 f.write("%s\n" % "\n".join(sorted(pns)))
907 logger.info("PN build list saved to 'pn-buildlist'")
907 908
908 # Remove old format output files to ensure no confusion with stale data 909 # Remove old format output files to ensure no confusion with stale data
909 try: 910 try: