insane: check for .debug as a path component, not part of the path string
authorChris Larson <chris_larson@mentor.com>
Tue, 23 Feb 2010 01:04:24 +0000 (18:04 -0700)
committerChris Larson <chris_larson@mentor.com>
Tue, 23 Feb 2010 23:03:54 +0000 (16:03 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/insane.bbclass

index 804caf0..c2e8d9c 100644 (file)
@@ -279,7 +279,7 @@ def package_qa_check_dbg(path, name,d, elf):
     sane = True
 
     if not "-dbg" in name:
-        if '.debug' in path:
+        if '.debug' in path.split(os.path.sep):
             error_msg = "non debug package contains .debug directory: %s path %s" % \
                      (name, package_qa_clean_path(path,d))
             sane = package_qa_handle_error(3, error_msg, name, path, d)