summaryrefslogtreecommitdiff
path: root/classes/insane.bbclass
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-02-22 18:04:24 -0700
committerChris Larson <chris_larson@mentor.com>2010-02-23 16:03:54 -0700
commit54373795ff637421f9376def1e7e8d1a27324e30 (patch)
treeec870fffa55f5985bef21544ccc7cb0bf04e460b /classes/insane.bbclass
parent250e384fecea36cec70406275f01dd0414e01fe0 (diff)
insane: check for .debug as a path component, not part of the path string
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes/insane.bbclass')
-rw-r--r--classes/insane.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 804caf06ee..c2e8d9cf1d 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -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)