summaryrefslogtreecommitdiffstats
path: root/meta/classes
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:51:41 +0100
commit9509ed472a75d5696af7ecb8bf8a6acf5fc761f1 (patch)
tree343ee33708f84200c3a415890a9510c829f53661 /meta/classes
parent3898d081abe0ee1a8e96d8728c6e0920509c1447 (diff)
downloadast2050-yocto-poky-9509ed472a75d5696af7ecb8bf8a6acf5fc761f1.zip
ast2050-yocto-poky-9509ed472a75d5696af7ecb8bf8a6acf5fc761f1.tar.gz
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>
Diffstat (limited to 'meta/classes')
-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 25ddfea..ff25834 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):
OpenPOWER on IntegriCloud