Changeset 804 for java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
- Timestamp:
- Apr 12, 2013, 5:57:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r773 r804 50 50 import net.oni2.aeinstaller.backend.oni.management.InstallProgressListener; 51 51 import net.oni2.aeinstaller.backend.oni.management.Installer; 52 import net.oni2.aeinstaller.backend.oni.management.ToolsManager; 52 import net.oni2.aeinstaller.backend.oni.management.tools.ToolInstallationList; 53 import net.oni2.aeinstaller.backend.oni.management.tools.ToolsManager; 53 54 import net.oni2.aeinstaller.backend.packages.Package; 54 55 import net.oni2.aeinstaller.backend.packages.PackageManager; … … 358 359 dl.setVisible(true); 359 360 if (dl.isFinished()) { 360 T reeSet<Integer> installed = ToolsManager361 .getInsta lledTools();361 ToolInstallationList til = ToolInstallationList 362 .getInstance(); 362 363 TreeSet<Package> tools = new TreeSet<Package>(); 363 364 for (Package m : execUpdates) 364 if (m.isTool() 365 && installed.contains(m.getPackageNumber())) 365 if (m.isTool() && til.isInstalled(m.getPackageNumber())) 366 366 tools.add(m); 367 367 if (tools.size() > 0) { 368 ToolsManager.installTools(tools, true); 368 369 ToolsManager.installTools(tools, false); 369 370 } … … 548 549 private void checkCorePackages() { 549 550 if (!SettingsManager.getInstance().isOfflineMode()) { 551 TreeSet<Package> tools = new TreeSet<Package>(); 550 552 for (Package m : PackageManager.getInstance().getCoreTools()) { 551 553 if (m.isNewerAvailable()) { 552 554 execCoreUpdates.add(m); 555 tools.add(m); 553 556 } 554 557 } … … 566 569 } 567 570 } 568 ToolsManager.installTools(PackageManager.getInstance() 569 .getCoreTools(), false); 570 } 571 572 ToolsManager.installTools(tools, true); 573 ToolsManager.installTools(tools, false); 574 } 575 ToolsManager.verifyToolsIntegrity(); 576 if (ToolInstallationList.getInstance().getModifiedTools().size() > 0) 577 System.out.println("Locally modified tools: " 578 + ToolInstallationList.getInstance().getModifiedTools() 579 .toString()); 571 580 } 572 581
Note:
See TracChangeset
for help on using the changeset viewer.