Changeset 804 for java/installer2/src/net/oni2/aeinstaller/backend/packages
- Timestamp:
- Apr 12, 2013, 5:57:57 PM (12 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller/backend/packages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/backend/packages/Package.java
r749 r804 14 14 import net.oni2.aeinstaller.backend.CaseInsensitiveFile; 15 15 import net.oni2.aeinstaller.backend.Paths; 16 import net.oni2.aeinstaller.backend.oni.management. ToolsManager;16 import net.oni2.aeinstaller.backend.oni.management.tools.ToolInstallationList; 17 17 import net.oni2.moddepot.DepotConfig; 18 18 import net.oni2.moddepot.ECompatiblePlatform; … … 230 230 public boolean isInstalled() { 231 231 if (tool) 232 return Tool sManager.getInstalledTools().contains(packageNumber);232 return ToolInstallationList.getInstance().isInstalled(packageNumber); 233 233 else 234 234 return PackageManager.getInstance().isModInstalled(this); -
java/installer2/src/net/oni2/aeinstaller/backend/packages/PackageManager.java
r749 r804 14 14 15 15 import net.oni2.aeinstaller.backend.Paths; 16 import net.oni2.aeinstaller.backend.oni.management.Installer; 17 import net.oni2.aeinstaller.backend.oni.management.tools.ToolInstallationList; 16 18 import net.oni2.moddepot.DepotManager; 17 19 import net.oni2.moddepot.model.NodeMod; 18 20 import net.oni2.moddepot.model.TaxonomyTerm; 19 import net.oni2.aeinstaller.backend.oni.management.Installer;20 import net.oni2.aeinstaller.backend.oni.management.ToolsManager;21 21 22 22 import com.thoughtworks.xstream.XStream; … … 266 266 public TreeSet<Package> getInstalledTools() { 267 267 TreeSet<Package> res = new TreeSet<Package>(); 268 for (int n : Tool sManager.getInstalledTools()) {268 for (int n : ToolInstallationList.getInstance().getItems().keySet()) { 269 269 res.add(getPackageByNumber(n)); 270 270 } … … 301 301 for (int depNum : m.getDependencies()) { 302 302 Package other = getPackageByNumber(depNum); 303 if (!mods.contains(other)) { 304 if (!res.containsKey(m)) 305 res.put(m, new HashSet<Package>()); 306 res.get(m).add(other); 303 if (other != null) { 304 if (!mods.contains(other)) { 305 if (!res.containsKey(m)) 306 res.put(m, new HashSet<Package>()); 307 res.get(m).add(other); 308 } 307 309 } 308 310 } … … 326 328 for (int confNum : m.getIncompabitilities()) { 327 329 Package other = getPackageByNumber(confNum); 328 if (mods.contains(other)) { 329 if (!res.containsKey(m)) 330 res.put(m, new HashSet<Package>()); 331 res.get(m).add(other); 330 if (other != null) { 331 if (mods.contains(other)) { 332 if (!res.containsKey(m)) 333 res.put(m, new HashSet<Package>()); 334 res.get(m).add(other); 335 } 332 336 } 333 337 }
Note:
See TracChangeset
for help on using the changeset viewer.