Changeset 860 for java/installer2/src/net/oni2/aeinstaller/backend
- Timestamp:
- May 8, 2013, 12:25:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/backend/packages/PackageManager.java
r859 r860 35 35 private Type localType = null; 36 36 37 private HashMap<Integer, Package> newToolsOnDepot = new HashMap<Integer, Package>(); 38 private HashMap<Integer, Package> newModsOnDepot = new HashMap<Integer, Package>(); 39 37 40 /** 38 41 * @param f … … 87 90 */ 88 91 public void init() { 92 HashMap<Integer, Package> oldMods = mods; 93 HashMap<Integer, Package> oldTools = tools; 94 89 95 types = new HashMap<String, Type>(); 90 96 mods = new HashMap<Integer, Package>(); 97 tools = new HashMap<Integer, Package>(); 98 99 newModsOnDepot = new HashMap<Integer, Package>(); 100 newToolsOnDepot = new HashMap<Integer, Package>(); 91 101 92 102 localType = new Type("-Local-"); … … 100 110 if (nm.getUploads().size() == 1) { 101 111 Package m = new Package(nm); 102 if (nm.isTool()) 112 if (nm.isTool()) { 103 113 tools.put(m.getPackageNumber(), m); 104 else 114 if (!oldTools.containsKey(m.getPackageNumber())) 115 newToolsOnDepot.put(m.getPackageNumber(), m); 116 } else { 105 117 mods.put(m.getPackageNumber(), m); 118 if (!oldMods.containsKey(m.getPackageNumber())) 119 newModsOnDepot.put(m.getPackageNumber(), m); 120 } 106 121 } 107 122 } … … 247 262 } 248 263 return res; 264 } 265 266 /** 267 * @return the newToolsOnDepot 268 */ 269 public HashMap<Integer, Package> getNewToolsOnDepot() { 270 return newToolsOnDepot; 271 } 272 273 /** 274 * @return the newModsOnDepot 275 */ 276 public HashMap<Integer, Package> getNewModsOnDepot() { 277 return newModsOnDepot; 249 278 } 250 279
Note:
See TracChangeset
for help on using the changeset viewer.