Changeset 669
- Timestamp:
- Feb 10, 2013, 2:36:15 AM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r663 r669 1 1 appname=AE Installer 2 2 appversion=0.99 n2 appversion=0.99o -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r662 r669 552 552 toDownload.add(m); 553 553 } 554 554 555 if (toDownload.size() > 0 && Settings.getInstance().isOfflineMode()) { 555 556 installState = EInstallState.OFFLINE; 556 557 break; 557 558 } 559 558 560 if (toDownload.size() > 0) { 559 561 Downloader dl = new Downloader(toDownload, installDeps); … … 568 570 } 569 571 } 572 570 573 HashMap<Package, HashSet<Package>> dependencies = PackageManager 571 574 .getInstance().checkDependencies(mods); … … 575 578 } 576 579 580 int size = 0; 581 String depsLocalString = ""; 582 String depsDownloadString = ""; 583 for (Package m : dependencies.keySet()) { 584 for (Package mDep : dependencies.get(m)) { 585 if (!mods.contains(mDep)) { 586 mods.add(mDep); 587 if (!mDep.isLocalAvailable()) { 588 size += mDep.getZipSize(); 589 if (depsDownloadString.length() > 0) 590 depsDownloadString += "\n"; 591 depsDownloadString += " - " + mDep.getName(); 592 } else { 593 if (depsLocalString.length() > 0) 594 depsLocalString += "\n"; 595 depsLocalString += " - " + mDep.getName(); 596 } 597 } 598 } 599 } 600 601 if (depsLocalString.length() == 0) 602 depsLocalString = bundle 603 .getString("installDependencies.none"); 604 if (depsDownloadString.length() == 0) 605 depsDownloadString = bundle 606 .getString("installDependencies.none"); 607 577 608 if (!Settings.getInstance() 578 609 .get("notifyDepsAfterInstall", false)) { 579 int size = 0;580 String depsLocalString = "";581 String depsDownloadString = "";582 for (Package m : dependencies.keySet()) {583 for (Package mDep : dependencies.get(m)) {584 if (!mods.contains(mDep)) {585 mods.add(mDep);586 if (!mDep.isLocalAvailable()) {587 size += mDep.getZipSize();588 if (depsDownloadString.length() > 0)589 depsDownloadString += "\n";590 depsDownloadString += " - "591 + mDep.getName();592 } else {593 if (depsLocalString.length() > 0)594 depsLocalString += "\n";595 depsLocalString += " - " + mDep.getName();596 }597 }598 }599 }600 if (depsLocalString.length() == 0)601 depsLocalString = bundle602 .getString("installDependencies.none");603 if (depsDownloadString.length() == 0)604 depsDownloadString = bundle605 .getString("installDependencies.none");606 607 610 int res = JOptionPane.showConfirmDialog(this, String 608 611 .format(bundle … … 613 616 JOptionPane.YES_NO_OPTION, 614 617 JOptionPane.INFORMATION_MESSAGE); 618 615 619 if (res == JOptionPane.NO_OPTION) { 616 620 installState = EInstallState.ABORTED; … … 665 669 } 666 670 } 667 668 671 } 669 672
Note:
See TracChangeset
for help on using the changeset viewer.