* [PATCH 1/1] BaseTools: Fixed Index out of range.
@ 2020-11-13 6:17 Mingyue Liang
0 siblings, 0 replies; only message in thread
From: Mingyue Liang @ 2020-11-13 6:17 UTC (permalink / raw)
To: devel; +Cc: Bob Feng, Liming Gao, Yuwei Chen
information generated by patch of push bz2972.
When we update trim.deps This problem occurs when the
content is only one line.
Therefore, if the content is more than one line, it
will be retrieved.
Signed-off-by: Mingyue Liang <mingyuex.liang@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
---
BaseTools/Source/Python/AutoGen/IncludesAutoGen.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py b/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py
index b06ef42573fd..5ec26eb98b42 100644
--- a/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py
@@ -291,7 +291,8 @@ ${END}
targetitem = self.GetRealTarget(source_abs.strip(" :"))
targetitem += ": "
- targetitem += lines[1]
+ if len(lines)>=2:
+ targetitem += lines[1]
newcontent.append(targetitem)
newcontent.extend(lines[2:])
newcontent.append("\n")
--
2.29.2.windows.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-13 6:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-13 6:17 [PATCH 1/1] BaseTools: Fixed Index out of range Mingyue Liang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox