summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-04-06 02:30:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-06 10:32:42 +0100
commite5a4c3f8ea0d27ce2b3a3c33c231e28b7647f16b (patch)
tree2c976f9c44e0c8f3766469c191265c360d735c95 /meta
parentcee2794c8312a2f8266c018acfd475b1882fc0f6 (diff)
downloadopenembedded-core-e5a4c3f8ea0d27ce2b3a3c33c231e28b7647f16b.tar.gz
openembedded-core-e5a4c3f8ea0d27ce2b3a3c33c231e28b7647f16b.tar.bz2
openembedded-core-e5a4c3f8ea0d27ce2b3a3c33c231e28b7647f16b.zip
sanity.bbclass: fix a hardcode in check_path_length()
* Fixed: 410 -> limit Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index d229938c93..eda0ea9c8a 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -334,7 +334,7 @@ def check_create_long_filename(filepath, pathname):
def check_path_length(filepath, pathname, limit):
if len(filepath) > limit:
- return "The length of %s is longer than 410, this would cause unexpected errors, please use a shorter path.\n" % pathname
+ return "The length of %s is longer than %s, this would cause unexpected errors, please use a shorter path.\n" % (pathname, limit)
return ""
def get_filesystem_id(path):