summaryrefslogtreecommitdiffstats
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:51:41 +0100
commit9509ed472a75d5696af7ecb8bf8a6acf5fc761f1 (patch)
tree343ee33708f84200c3a415890a9510c829f53661 /meta
parent3898d081abe0ee1a8e96d8728c6e0920509c1447 (diff)
downloadpoky-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')
-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):
158 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 158 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
159 else: 159 else:
160 return "Failed to create a file in %s: %s.\n" % (pathname, strerror) 160 return "Failed to create a file in %s: %s.\n" % (pathname, strerror)
161 except OSError as (errno, strerror):
162 return "Failed to create %s directory in which to run long name sanity check: %s.\n" % (pathname, strerror)
161 return "" 163 return ""
162 164
163def check_connectivity(d): 165def check_connectivity(d):