]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Eot/Parser.py
Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / Python / Eot / Parser.py
index 6850c8d32a591b51cf02c2f630163e98df6bde6d..9ef71a958769dc17050bb2b7c8faac8ff016772f 100644 (file)
@@ -2,8 +2,8 @@
 # This file is used to define common parsing related functions used in parsing\r
 # Inf/Dsc/Makefile process\r
 #\r
-# Copyright (c) 2008 - 2010, Intel Corporation\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
 # http://opensource.org/licenses/bsd-license.php\r
@@ -453,8 +453,7 @@ def SearchPpiCallFunction(Identifier, SourceFileID, SourceFileFullPath, ItemMode
         if NewRecordSet:\r
             NewRecord = NewRecordSet[0][0]\r
             VariableValueList = NewRecord.split('},')\r
-            if len(VariableValueList) > Index:\r
-                VariableValue = VariableValueList[Index]\r
+            for VariableValue in VariableValueList[Index:]:\r
                 NewVariableValueList = VariableValue.split(',')\r
                 if len(NewVariableValueList) > 1:\r
                     NewVariableValue = NewVariableValueList[1].strip()\r