mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
sanity.bbclass: catch an extra exception in check_create_long_filename
The call to bb.mkdirhier() in check_create_long_filename() can fail with an OSError, explicitly catch this and report something useful to the user. (From OE-Core rev: b066906477eb0496a2babb3d8e87682a1b7df0de) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3898d081ab
commit
9509ed472a
@@ -158,6 +158,8 @@ def check_create_long_filename(filepath, pathname):
|
||||
return "Failed to create a file with a long name in %s. Please use a filesystem that does not unreasonably limit filename length.\n" % pathname
|
||||
else:
|
||||
return "Failed to create a file in %s: %s.\n" % (pathname, strerror)
|
||||
except OSError as (errno, strerror):
|
||||
return "Failed to create %s directory in which to run long name sanity check: %s.\n" % (pathname, strerror)
|
||||
return ""
|
||||
|
||||
def check_connectivity(d):
|
||||
|
||||
Reference in New Issue
Block a user