]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix regression bug by 3378782691af
authorYunhua Feng <yunhuax.feng@intel.com>
Fri, 27 Apr 2018 01:15:56 +0000 (09:15 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 2 May 2018 01:51:12 +0000 (09:51 +0800)
Fix regression bug by 3378782691af

Fixes:https://bugzilla.tianocore.org/show_bug.cgi?id=941
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/Workspace/MetaFileParser.py

index 550359f9abb261367600dd269784912419b841b8..788eca17616146fbf3f7abc6da3ff3a2885086e4 100644 (file)
@@ -1543,7 +1543,7 @@ class DscParser(MetaFileParser):
 \r
             IncludedFileTable = MetaFileStorage(self._Table.Cur, IncludedFile1, MODEL_FILE_DSC, False)\r
             FromItem = self._Content[self._ContentIndex - 1][0]\r
-            if self._Content[self._ContentIndex - 1][8] != -1.0:\r
+            if self._InSubsection:\r
                 Owner = self._Content[self._ContentIndex - 1][8]\r
             else:\r
                 Owner = self._Content[self._ContentIndex - 1][0]\r