diff options
author | Pavel Zhukov <pavel@zhukoff.net> | 2024-10-10 19:45:45 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-11 12:17:03 +0100 |
commit | 0d564b3ad1e8f0db3909eeaa6afed636a57f31f6 (patch) | |
tree | 4fea217d1f1981a86e902ae0352ce464132ba9c7 /scripts/lib/scriptpath.py | |
parent | a475c8ab38bc56c0a5d68a44f99f0005058f6b75 (diff) | |
download | poky-0d564b3ad1e8f0db3909eeaa6afed636a57f31f6.tar.gz |
package_rpm: Check if file exists before open()
Exception handler tries to read() /etc/passwd file in sysroot
and if file doesn't exist for any reason then it raises FileNotFoundError
exception which mask the original source of the problem and makes
debugging of the issue more difficult.
Fixes:
Exception: FileNotFoundError: [Errno 2] No such file or directory:
'/codebuild/output/src1899304708/src/build/tmp-container/work/core2-64-oe-linux/emqx-bin/4.3.12/recipe-sysroot/etc/passwd'
(From OE-Core rev: 4ad9a0e0b11eb7bc5a3dd45fc8945e094ea949e9)
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptpath.py')
0 files changed, 0 insertions, 0 deletions