sanity.bbclass: fix a hardcode in check_path_length()

* Fixed:
  410 -> limit

(From OE-Core rev: e5a4c3f8ea0d27ce2b3a3c33c231e28b7647f16b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert Yang 2016-04-06 02:30:01 -07:00 committed by Richard Purdie
parent 94b3583476
commit b667f4dfdf
1 changed files with 1 additions and 1 deletions

View File

@ -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):