]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
BaseTools: Workspace classes refactor properties
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / WorkspaceDatabase.py
index e2f373745fc0c370ee0bc82d7c1c042e7f56f7f4..3bb287b8b24c69a3480a0226e2a7167548e06cf7 100644 (file)
@@ -302,25 +302,21 @@ determine whether database file is out of date!\n")
         return PackageList\r
 \r
     ## Summarize all platforms in the database\r
-    def _GetPlatformList(self):\r
-        PlatformList = []\r
+    def PlatformList(self):\r
+        RetVal = []\r
         for PlatformFile in self.TblFile.GetFileList(MODEL_FILE_DSC):\r
             try:\r
-                Platform = self.BuildObject[PathClass(PlatformFile), TAB_COMMON]\r
+                RetVal.append(self.BuildObject[PathClass(PlatformFile), TAB_COMMON])\r
             except:\r
-                Platform = None\r
-            if Platform is not None:\r
-                PlatformList.append(Platform)\r
-        return PlatformList\r
+                pass\r
+        return RetVal\r
 \r
-    def _MapPlatform(self, Dscfile):\r
+    def MapPlatform(self, Dscfile):\r
         Platform = self.BuildObject[PathClass(Dscfile), TAB_COMMON]\r
         if Platform is None:\r
             EdkLogger.error('build', PARSER_ERROR, "Failed to parser DSC file: %s" % Dscfile)\r
         return Platform\r
 \r
-    PlatformList = property(_GetPlatformList)\r
-\r
 ##\r
 #\r
 # This acts like the main() function for the script, unless it is 'import'ed into another\r