diff options
| author | Robert Yang <liezhi.yang@windriver.com> | 2024-11-01 04:58:57 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-05 11:17:17 +0000 |
| commit | 0884c31b1b60f34f3d3db3ab110b4e506bcc9160 (patch) | |
| tree | 1d91c64f1c7a8a9f19726d616671151e5d3322c0 | |
| parent | e366c7a67175e219322eba5dc7bdfb6f42a1bfcf (diff) | |
| download | poky-0884c31b1b60f34f3d3db3ab110b4e506bcc9160.tar.gz | |
bitbake: cooker: Sort pn-buildlist
So that we can compare the different pn-buildlist easily.
(Bitbake rev: 529043117a7c62feb45bc891658a412cc8dd7e3f)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 9 |
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: |
