|
From: <xf...@us...> - 2012-05-22 01:27:17
|
Revision: 2522
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2522&view=rev
Author: xfzyr
Date: 2012-05-22 01:27:10 +0000 (Tue, 22 May 2012)
Log Message:
-----------
Fix a issue of build report Hang in Linux reported from EDKII Community.
Signed-off-by: Liming Gao <lim...@in...>
Reviewed-by: Yurui Zeng <yur...@in...>
Modified Paths:
--------------
trunk/BaseTools/Source/Python/build/BuildReport.py
Modified: trunk/BaseTools/Source/Python/build/BuildReport.py
===================================================================
--- trunk/BaseTools/Source/Python/build/BuildReport.py 2012-05-21 08:26:22 UTC (rev 2521)
+++ trunk/BaseTools/Source/Python/build/BuildReport.py 2012-05-22 01:27:10 UTC (rev 2522)
@@ -39,6 +39,7 @@
from Common.DataType import TAB_SPACE_SPLIT
from Common.DataType import TAB_BRG_PCD
from Common.DataType import TAB_BRG_LIBRARY
+from Common.DataType import TAB_BACK_SLASH
## Pattern to extract contents in EDK DXS files
gDxsDependencyPattern = re.compile(r"DEPENDENCY_START(.+)DEPENDENCY_END", re.DOTALL)
@@ -191,11 +192,11 @@
while len(Line.rstrip()) > MaxLength:
LineSpaceIndex = Line.rfind(TAB_SPACE_SPLIT, 0, MaxLength)
LineSlashIndex = Line.rfind(TAB_SLASH, 0, MaxLength)
- LineBreakIndex = MaxLength
- if LineSpaceIndex > LineSlashIndex:
- LineBreakIndex = LineSpaceIndex
- elif LineSlashIndex > LineSpaceIndex:
- LineBreakIndex = LineSlashIndex
+ LineBackSlashIndex = Line.rfind(TAB_BACK_SLASH, 0, MaxLength)
+ if max(LineSpaceIndex, LineSlashIndex, LineBackSlashIndex) > 0:
+ LineBreakIndex = max(LineSpaceIndex, LineSlashIndex, LineBackSlashIndex)
+ else:
+ LineBreakIndex = MaxLength
NewContentList.append(Line[:LineBreakIndex])
Line = Line[LineBreakIndex:]
if Line:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|