diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2025-02-13 10:18:17 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-18 11:56:03 +0000 |
commit | 54e4a89a758906102067dca19f1d3212e0d76ad9 (patch) | |
tree | 23d30f8d36ff0f00648a354920d48c2d5414923b /meta/lib/patchtest/patchtest_patterns.py | |
parent | d55cd3fc39b638b4b765b07c484e58880996febf (diff) | |
download | poky-54e4a89a758906102067dca19f1d3212e0d76ad9.tar.gz |
spdx30: Improve os.walk() handling
There have been errors seen when assembling root file system SPDX
documents where they will references files that don't exist in the
package SPDX.
The speculation is that this is caused by os.walk() ignoring errors when
walking, causing files to be omitted. Improve the code by adding an
error handler to os.walk() to report errors when they occur.
In addition, sort the files and directories while walking to ensure
consistent ordering of the file SPDX IDs.
(From OE-Core rev: 86b581e80637cd8136ce7a7e95db94d9553d2f60)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest/patchtest_patterns.py')
0 files changed, 0 insertions, 0 deletions