diff options
| author | Peter Marko <peter.marko@siemens.com> | 2022-08-11 14:35:13 +0200 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-14 08:13:32 +0100 | 
| commit | a9e80e935c4734f498bd37d58abb4af4418cdc2f (patch) | |
| tree | 648973506dc12a09bc0579cb5d6222d2822cd795 /scripts/lib | |
| parent | bd0beddcb1f1cfb87c245d8d6e61413ec05c67b7 (diff) | |
| download | poky-a9e80e935c4734f498bd37d58abb4af4418cdc2f.tar.gz | |
create-spdx: handle links to inaccessible locations
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: e105befbe4ee0d85e94c2048a744f0373e2dbcdf)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions
