diff options
author | Pavel Zhukov <pavel@zhukoff.net> | 2024-10-10 19:45:45 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-11-26 06:11:30 -0800 |
commit | 1a526844db586a84978f23393b981da76c55ae41 (patch) | |
tree | df26a9160c5bb5e0749a329b8d107a6ba47840a4 /bitbake/lib/bb/exceptions.py | |
parent | c81f1bb300e5b686f5595e194f6fc0986dd15391 (diff) | |
download | poky-1a526844db586a84978f23393b981da76c55ae41.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: 1adfa8b78991764ed1f9951c5bee5412553f3b9d)
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4ad9a0e0b11eb7bc5a3dd45fc8945e094ea949e9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'bitbake/lib/bb/exceptions.py')
0 files changed, 0 insertions, 0 deletions