Revision: 19384
          http://sourceforge.net/p/edk2/code/19384
Author:   vanjeff
Date:     2015-12-18 06:53:30 +0000 (Fri, 18 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

(Sync patch r19238 from main trunk.)

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

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/19238

Modified Paths:
--------------
    branches/UDK2015/BaseTools/Source/Python/Ecc/Check.py

Modified: branches/UDK2015/BaseTools/Source/Python/Ecc/Check.py
===================================================================
--- branches/UDK2015/BaseTools/Source/Python/Ecc/Check.py       2015-12-18 
06:52:50 UTC (rev 19383)
+++ branches/UDK2015/BaseTools/Source/Python/Ecc/Check.py       2015-12-18 
06:53:30 UTC (rev 19384)
@@ -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