]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Eot failed when enable python3
authorFeng, Bob C <bob.c.feng@intel.com>
Mon, 25 Feb 2019 09:00:31 +0000 (17:00 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Tue, 26 Feb 2019 01:10:23 +0000 (09:10 +0800)
The Eot will report error when python3 enabled.
We replaced sdict with collections.OrderedDict in python3
patch set, but the sdict implement "append" method which is not
implemented in collections.OrderedDict.

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>
BaseTools/Source/Python/Eot/EotMain.py

index 56aa48d2a1145f6038c42c618c4a5085344f9aec..3020f6525ee7aea8c791b337848f61c8da0fc556 100644 (file)
@@ -1105,7 +1105,7 @@ class MultipleFv(FirmwareVolume):
             Fv.frombuffer(Buf, 0, len(Buf))\r
 \r
             self.BasicInfo.append([Fv.Name, Fv.FileSystemGuid, Fv.Size])\r
-            self.FfsDict.append(Fv.FfsDict)\r
+            self.FfsDict.update(Fv.FfsDict)\r
 \r
 ## Class Eot\r
 #\r