diff options
author | Peter Marko <peter.marko@siemens.com> | 2025-03-20 13:15:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-20 17:49:16 +0000 |
commit | 769a4479e123a5c2951eab8915cbd2b29d82c7f9 (patch) | |
tree | 35d2cb1e50830bdf510f32e6c6bbaf61b5f79bee /documentation/set_versions.py | |
parent | e1a6ae2309d6729c44b01fe3be76b5eea633de61 (diff) | |
download | poky-769a4479e123a5c2951eab8915cbd2b29d82c7f9.tar.gz |
spdx30: handle links to inaccessible locations
This is the same as e105befbe4ee0d85e94c2048a744f0373e2dbcdf on
additional place in the code.
When a link is pointing to location inaccessible to build user (e.g. "/root/something"),
filepath.is_file() throws "PermissionError: [Errno 13] Permission denied".
Fix this by first checking if it is a link.
(From OE-Core rev: 26f35f866cf7888431963cf4fc5d2019cd28de74)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/set_versions.py')
0 files changed, 0 insertions, 0 deletions