ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/installer2/src/net/oni2/aeinstaller/DepotPackageCheck.java
(Generate patch)

Comparing java/installer2/src/net/oni2/aeinstaller/DepotPackageCheck.java (file contents):
Revision 741 by alloc, Sun Mar 24 16:09:44 2013 UTC vs.
Revision 749 by alloc, Tue Mar 26 17:26:41 2013 UTC

# Line 3 | Line 3 | package net.oni2.aeinstaller;
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
# Line 33 | Line 33 | public class DepotPackageCheck {
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)