Revision: 19238
          http://sourceforge.net/p/edk2/code/19238
Author:   hchen30
Date:     2015-12-14 08:08:21 +0000 (Mon, 14 Dec 2015)
Log Message:
-----------
BaseTools/Ecc: Fix a bug to report fake issue

Fix a bug to ignore the lib ins defined in [components] section but also listed 
in SkipDir

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <[email protected]>
Reviewed-by: Yonghong Zhu <[email protected]>

Modified Paths:
--------------
    trunk/edk2/BaseTools/Source/Python/Ecc/Check.py

Modified: trunk/edk2/BaseTools/Source/Python/Ecc/Check.py
===================================================================
--- trunk/edk2/BaseTools/Source/Python/Ecc/Check.py     2015-12-14 07:56:19 UTC 
(rev 19237)
+++ trunk/edk2/BaseTools/Source/Python/Ecc/Check.py     2015-12-14 08:08:21 UTC 
(rev 19238)
@@ -653,6 +653,10 @@
                     continue
                 else:
                     LibraryIns = 
os.path.normpath(mws.join(EccGlobalData.gWorkspace, LibraryClass[2]))
+                    SkipDirString = '|'.join(EccGlobalData.gConfig.SkipDirList)
+                    p = re.compile(r'.*[\\/](?:%s^\S)[\\/]?.*' % SkipDirString)
+                    if p.match(os.path.split(LibraryIns)[0].upper()):
+                        continue
                     SqlCommand = """select Value3 from Inf where BelongsToFile 
=
                                     (select ID from File where lower(FullPath) 
= lower('%s'))
                                     and Value2 = '%s'""" % (LibraryIns, 
'LIBRARY_CLASS')


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to