]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Core/DependencyRules.py
BaseTools/UPT: Fix UNI file name issue
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Core / DependencyRules.py
index 909c584e4ec2a93eefdb6dfa71abae60eb1c2549..26c5a97da80fc16ca60eb8b7794b8fbf28093b92 100644 (file)
@@ -55,6 +55,8 @@ class DependencyRules(object):
         self.PkgsToBeDepend.extend(self.GenToBeInstalledPkgList(ToBeInstalledPkgList))\r
         \r
     def GenToBeInstalledPkgList(self, ToBeInstalledPkgList):\r
+        if not ToBeInstalledPkgList:\r
+            return []\r
         RtnList = []\r
         for Dist in ToBeInstalledPkgList:\r
             for Package in Dist.PackageSurfaceArea:\r