]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: replace string with predefined constant
authorCarsey, Jaben <jaben.carsey@intel.com>
Thu, 26 Apr 2018 16:57:57 +0000 (00:57 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 2 May 2018 07:02:12 +0000 (15:02 +0800)
v2 - add missing namespace.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/Ecc/Check.py

index 089d42a6d181989a2d781fa42da22bd591416c26..dde7d784108280988f6c99fd3fcb817a0e6c7ddf 100644 (file)
@@ -787,7 +787,7 @@ class Check(object):
                         continue\r
                     SqlCommand = """select Value3 from Inf where BelongsToFile =\r
                                     (select ID from File where lower(FullPath) = lower('%s'))\r
-                                    and Value2 = '%s'""" % (LibraryIns, 'LIBRARY_CLASS')\r
+                                    and Value2 = '%s'""" % (LibraryIns, DT.PLATFORM_COMPONENT_TYPE_LIBRARY_CLASS)\r
                     RecordSet = EccGlobalData.gDb.TblInf.Exec(SqlCommand)\r
                     IsFound = False\r
                     for Record in RecordSet:\r