]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Remove the unnecessary check for RAW File
authorYonghong Zhu <yonghong.zhu@intel.com>
Mon, 28 Mar 2016 04:27:50 +0000 (12:27 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 28 Mar 2016 04:27:50 +0000 (12:27 +0800)
Because the __VerifyFile function already checked whether the file is
valid.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/GenFds/FdfParser.py

index b86c196067251ac31669158f60060c47d8363389..12d4f2bb73738fbbd155e7ad1cb42a62463a0308 100644 (file)
@@ -2731,8 +2731,6 @@ class FdfParser:
             if FileName == '}':\r
                 self.__UndoToken()\r
                 raise Warning("expected Filename value", self.FileName, self.CurrentLineNumber)\r
-            elif not os.path.isfile(FileName):\r
-                raise Warning("expected '}'", self.FileName, self.CurrentLineNumber)\r
 \r
             self.__VerifyFile(FileName)\r
             File = PathClass(NormPath(FileName), GenFdsGlobalVariable.WorkSpaceDir)\r