| 3 |  | import java.util.HashMap; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 |  | import java.util.HashSet; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 5 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 6 | < | import net.oni2.aeinstaller.backend.depot.DepotConfig; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 7 | < | import net.oni2.aeinstaller.backend.depot.DepotManager; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 8 | < | import net.oni2.aeinstaller.backend.depot.model.Node; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 9 | < | import net.oni2.aeinstaller.backend.depot.model.NodeMod; | 
 
 
 
 
 
 
 
 
 | 6 | > | import net.oni2.moddepot.DepotConfig; | 
 
 
 
 
 | 7 | > | import net.oni2.moddepot.DepotManager; | 
 
 
 
 
 | 8 | > | import net.oni2.moddepot.model.Node; | 
 
 
 
 
 | 9 | > | import net.oni2.moddepot.model.NodeMod; | 
 
 
 
 
 
 
 
 
 
 
 | 10 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 11 |  | /** | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 12 |  | * @author Christian Illy | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 33 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 34 |  | HashMap<String, HashSet<NodeMod>> foundNodes = new HashMap<String, HashSet<NodeMod>>(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 35 |  | for (Node n : DepotManager.getInstance().getNodesByType( | 
 
 
 
 
 
 
 
 
 
 
 | 36 | < | DepotConfig.getNodeType_Mod())) { | 
 
 
 
 
 
 
 
 
 | 36 | > | DepotConfig.nodeType_Package)) { | 
 
 
 
 
 
 
 
 
 
 
 | 37 |  | NodeMod nm = (NodeMod) n; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 38 |  | if (nm.getUploads().size() != 1) { | 
 
 
 
 
 
 
 
 
 
 
 | 39 | < | if (!foundNodes.containsKey(nm.getInstallMethod().getName())) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 40 | < | foundNodes.put(nm.getInstallMethod().getName(), | 
 
 
 
 
 
 
 
 
 | 39 | > | if (!foundNodes.containsKey(nm.getInstallMethod())) | 
 
 
 
 
 | 40 | > | foundNodes.put(nm.getInstallMethod(), | 
 
 
 
 
 
 
 
 
 
 
 | 41 |  | new HashSet<NodeMod>()); | 
 
 
 
 
 
 
 
 
 
 
 | 42 | < | foundNodes.get(nm.getInstallMethod().getName()).add(nm); | 
 
 
 
 
 
 
 
 
 | 42 | > | foundNodes.get(nm.getInstallMethod()).add(nm); | 
 
 
 
 
 
 
 
 
 
 
 | 43 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 44 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 45 |  |  |