[oe-commits] [openembedded-core] 01/03: sanity.bbclass: fix a hardcode in check_path_length()

git at git.openembedded.org git at git.openembedded.org
Wed Apr 6 09:34:47 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e5a4c3f8ea0d27ce2b3a3c33c231e28b7647f16b
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Wed Apr 6 02:30:01 2016 -0700

    sanity.bbclass: fix a hardcode in check_path_length()
    
    * Fixed:
      410 -> limit
    
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/sanity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index d229938..eda0ea9 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):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list