diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-04-27 00:57:57 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-05-02 15:02:12 +0800 |
commit | 1beb268a686344d92f42ced656edf46c626e9413 (patch) | |
tree | d2db7795f0a235e8a41d71685fed9b66381663ca /BaseTools/Source/Python/Ecc | |
parent | 91fa33eeca8cea64490ccf4d92f920369a2a3eed (diff) | |
download | edk2-1beb268a686344d92f42ced656edf46c626e9413.tar.gz edk2-1beb268a686344d92f42ced656edf46c626e9413.tar.bz2 edk2-1beb268a686344d92f42ced656edf46c626e9413.zip |
BaseTools: replace string with predefined constant
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>
Diffstat (limited to 'BaseTools/Source/Python/Ecc')
-rw-r--r-- | BaseTools/Source/Python/Ecc/Check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Ecc/Check.py b/BaseTools/Source/Python/Ecc/Check.py index 089d42a6d1..dde7d78410 100644 --- a/BaseTools/Source/Python/Ecc/Check.py +++ b/BaseTools/Source/Python/Ecc/Check.py @@ -787,7 +787,7 @@ class Check(object): continue
SqlCommand = """select Value3 from Inf where BelongsToFile =
(select ID from File where lower(FullPath) = lower('%s'))
- and Value2 = '%s'""" % (LibraryIns, 'LIBRARY_CLASS')
+ and Value2 = '%s'""" % (LibraryIns, DT.PLATFORM_COMPONENT_TYPE_LIBRARY_CLASS)
RecordSet = EccGlobalData.gDb.TblInf.Exec(SqlCommand)
IsFound = False
for Record in RecordSet:
|