]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaOwner.java
Add Package-Guid Map.
[mirror_edk2.git] / Tools / Java / Source / MigrationTools / org / tianocore / migration / MsaOwner.java
index 65873a3c69fdbc459d1e2650115541572a4f2ab8..5c2eaf0caf97c8bb62cb310da71a2fe87d58195a 100644 (file)
@@ -1,3 +1,15 @@
+/** @file\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
 package org.tianocore.migration;\r
 \r
 import java.io.BufferedWriter;\r
@@ -213,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