Sync BaseTools Branch (version r2271) to EDKII main trunk.
BaseTool Branch: https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/branches/Releases/BaseTools_r2100 Signed-off-by: lgao4 Reviewed-by: hchen30 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12214 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -2261,6 +2261,7 @@ class WorkspaceDatabase(object):
|
||||
# @prarm RenewDb=False Create new database file if it's already there
|
||||
#
|
||||
def __init__(self, DbPath, GlobalMacros={}, RenewDb=False):
|
||||
self._DbClosedFlag = False
|
||||
self._GlobalMacros = GlobalMacros
|
||||
|
||||
if DbPath == None or DbPath == '':
|
||||
@ -2414,9 +2415,11 @@ determine whether database file is out of date!\n")
|
||||
# Close the connection and cursor
|
||||
#
|
||||
def Close(self):
|
||||
self.Conn.commit()
|
||||
self.Cur.close()
|
||||
self.Conn.close()
|
||||
if not self._DbClosedFlag:
|
||||
self.Conn.commit()
|
||||
self.Cur.close()
|
||||
self.Conn.close()
|
||||
self._DbClosedFlag = True
|
||||
|
||||
## Get unique file ID for the gvien file
|
||||
def GetFileId(self, FilePath):
|
||||
|
Reference in New Issue
Block a user