summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Eot/EotMain.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-02-25 17:19:02 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-02-26 09:10:23 +0800
commitdc082d50293751b918787e5db9566bcec150f474 (patch)
tree43a0dfa970a9f24039954e40f8d91bf9288f9e2b /BaseTools/Source/Python/Eot/EotMain.py
parentdde29b9ca544a47e08cb53cba3895fcabe82521e (diff)
downloadedk2-dc082d50293751b918787e5db9566bcec150f474.tar.gz
edk2-dc082d50293751b918787e5db9566bcec150f474.tar.bz2
edk2-dc082d50293751b918787e5db9566bcec150f474.zip
BaseTools: Fix a Eot issue.
FirmwareVolume.UnDispatchedFfsDict is mutated during iteration, convert the FirmwareVolume.UnDispatchedFfsDict.keys() to a new list to resolve this problem. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Eot/EotMain.py')
-rw-r--r--BaseTools/Source/Python/Eot/EotMain.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Eot/EotMain.py b/BaseTools/Source/Python/Eot/EotMain.py
index 3020f6525e..4802aea8b1 100644
--- a/BaseTools/Source/Python/Eot/EotMain.py
+++ b/BaseTools/Source/Python/Eot/EotMain.py
@@ -391,7 +391,7 @@ class FirmwareVolume(Image):
FfsDxeCoreGuid = None
FfsPeiPrioriGuid = None
FfsDxePrioriGuid = None
- for FfsID in self.UnDispatchedFfsDict.keys():
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):
Ffs = self.UnDispatchedFfsDict[FfsID]
if Ffs.Type == 0x03:
FfsSecCoreGuid = FfsID
@@ -497,7 +497,7 @@ class FirmwareVolume(Image):
def DisPatchDxe(self, Db):
IsInstalled = False
ScheduleList = sdict()
- for FfsID in self.UnDispatchedFfsDict.keys():
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):
CouldBeLoaded = False
DepexString = ''
FileDepex = None
@@ -562,7 +562,7 @@ class FirmwareVolume(Image):
def DisPatchPei(self, Db):
IsInstalled = False
- for FfsID in self.UnDispatchedFfsDict.keys():
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):
CouldBeLoaded = True
DepexString = ''
FileDepex = None