From 54373795ff637421f9376def1e7e8d1a27324e30 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Mon, 22 Feb 2010 18:04:24 -0700 Subject: [PATCH] insane: check for .debug as a path component, not part of the path string Signed-off-by: Chris Larson --- classes/insane.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5