]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/GenFds.py
BaseTools: Replace the sqlite database with list
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / GenFds.py
index da484d0bb1f5dfca9baa47e3b80c737035e676a5..51655cc09c2663f08442711ecf8b3a3e36b8d4d3 100644 (file)
@@ -226,12 +226,11 @@ def GenFdsApi(FdsCommandDict, WorkSpaceDataBase=None):
 \r
         """call Workspace build create database"""\r
         GlobalData.gDatabasePath = os.path.normpath(os.path.join(ConfDirectoryPath, GlobalData.gDatabasePath))\r
+\r
         if WorkSpaceDataBase:\r
             BuildWorkSpace = WorkSpaceDataBase\r
         else:\r
-            BuildWorkSpace = WorkspaceDatabase(GlobalData.gDatabasePath)\r
-            BuildWorkSpace.InitDatabase()\r
-\r
+            BuildWorkSpace = WorkspaceDatabase()\r
         #\r
         # Get files real name in workspace dir\r
         #\r