|
From: <hc...@us...> - 2012-06-01 06:28:44
|
Revision: 2532
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2532&view=rev
Author: hchen30
Date: 2012-06-01 06:28:38 +0000 (Fri, 01 Jun 2012)
Log Message:
-----------
Enhance build tool to break when there is a space with the section in DEC file.
Reviewed-by: Yurui Zeng <yur...@in...>
Modified Paths:
--------------
trunk/BaseTools/Source/Python/Workspace/MetaFileParser.py
Modified: trunk/BaseTools/Source/Python/Workspace/MetaFileParser.py
===================================================================
--- trunk/BaseTools/Source/Python/Workspace/MetaFileParser.py 2012-06-01 05:12:41 UTC (rev 2531)
+++ trunk/BaseTools/Source/Python/Workspace/MetaFileParser.py 2012-06-01 06:28:38 UTC (rev 2532)
@@ -1637,12 +1637,13 @@
self._SectionName = ''
self._SectionType = []
ArchList = set()
- for Item in GetSplitValueList(self._CurrentLine[1:-1], TAB_COMMA_SPLIT):
+ Line = self._CurrentLine.replace("%s%s" % (TAB_COMMA_SPLIT, TAB_SPACE_SPLIT), TAB_COMMA_SPLIT)
+ for Item in Line[1:-1].split(TAB_COMMA_SPLIT):
if Item == '':
EdkLogger.error("Parser", FORMAT_UNKNOWN_ERROR,
"section name can NOT be empty or incorrectly use separator comma",
self.MetaFile, self._LineIndex + 1, self._CurrentLine)
- ItemList = GetSplitValueList(Item, TAB_SPLIT)
+ ItemList = Item.split(TAB_SPLIT)
# different types of PCD are permissible in one section
self._SectionName = ItemList[0].upper()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|