Add Package-Guid Map.
[mirror_edk2.git] / Tools / Java / Source / MigrationTools / org / tianocore / migration / MsaOwner.java
index 9217857fc634efd7c7295db447218b7adef68dd7..5c2eaf0caf97c8bb62cb310da71a2fe87d58195a 100644 (file)
@@ -225,8 +225,14 @@ public class MsaOwner {
     }\r
     \r
     public final boolean setupPackageDependencies() {\r
-        addPackage("5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec");\r
-        addPackage("68169ab0-d41b-4009-9060-292c253ac43d");\r
+        Iterator<String> it;\r
+        //\r
+        // For now, simply add all package guids in the database. \r
+        // \r
+        it = MigrationTool.db.dumpAllPkgGuid();\r
+        while (it.hasNext()) {\r
+            packagedependencies.addNewPackage().setPackageGuid(it.next());\r
+        }\r
         return true;\r
     }\r
     \r