summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-05-23 16:28:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-24 08:34:51 +0100
commitb066906477eb0496a2babb3d8e87682a1b7df0de (patch)
treefbedeb944158bed9dbd1dba05a291eb9de6c84f4 /meta
parent719d44305508c75a9f2decacdff6558ca14277bb (diff)
downloadopenembedded-core-b066906477eb0496a2babb3d8e87682a1b7df0de.tar.gz
openembedded-core-b066906477eb0496a2babb3d8e87682a1b7df0de.tar.bz2
openembedded-core-b066906477eb0496a2babb3d8e87682a1b7df0de.zip
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. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 25ddfeabb2..ff258349b5 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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):