]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Xml/CommonXml.py
Sync BaseTool trunk (version r2640) into EDKII BaseTools.
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Xml / CommonXml.py
index fff6e6772ecc7d817ee751030bc91e0daf9597eb..0369bfba4cd7add5fdb04bce9e4f68e0976f016d 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # This file is used to parse a PCD file of .PKG file\r
 #\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials are licensed and made available \r
 # under the terms and conditions of the BSD License which accompanies this \r
@@ -357,8 +357,10 @@ class MiscellaneousFileXml(object):
             Executable = XmlAttribute(XmlNode(SubItem, '%s/Filename' % Key), 'Executable')\r
             if Executable.upper() == "TRUE":\r
                 Executable = True\r
-            else:\r
+            elif Executable.upper() == "FALSE":\r
                 Executable = False\r
+            else:\r
+                Executable = ''\r
             self.Files.append([Filename, Executable])\r
 \r
         MiscFile = MiscFileObject()\r
@@ -392,8 +394,10 @@ class MiscellaneousFileXml(object):
             OsType = XmlAttribute(XmlNode(SubItem, '%s/Filename' % Key), 'OS')\r
             if Executable.upper() == "TRUE":\r
                 Executable = True\r
-            else:\r
+            elif Executable.upper() == "FALSE":\r
                 Executable = False\r
+            else:\r
+                Executable = ''\r
             self.Files.append([Filename, Executable, OsType])\r
 \r
         MiscFile = MiscFileObject()\r