devel-provide-is-devel-package.diff
authorAnas Nashif <anas.nashif@intel.com>
Wed, 6 Feb 2013 21:11:08 +0000 (13:11 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 6 Feb 2013 21:11:08 +0000 (13:11 -0800)
===================================================================

FilesCheck.py

index 27513f6..b9127b6 100644 (file)
@@ -842,6 +842,10 @@ class FilesCheck(AbstractCheck.AbstractCheck):
         # Check if the package is a development package
         devel_pkg = devel_regex.search(pkg.name)
 
         # Check if the package is a development package
         devel_pkg = devel_regex.search(pkg.name)
 
+        for p in pkg.provides():
+            if not devel_pkg and devel_regex.search(p[0]):
+                devel_pkg = True
+
         config_files = pkg.configFiles()
         ghost_files = pkg.ghostFiles()
         doc_files = pkg.docFiles()
         config_files = pkg.configFiles()
         ghost_files = pkg.ghostFiles()
         doc_files = pkg.docFiles()