private void internalLaunchPkgs(List<PkgStatus> buildSystemPkgStatus,
List<PkgStatus> devicePkgStatus, Shell shell, IProgressMonitor monitor)
throws InterruptedException {
- monitor.beginTask(PlatformLaunchMessages.INSTALL_PACKAGE, 4);
+ monitor.beginTask(PlatformLaunchMessages.INSTALL_PACKAGE, 3);
monitor.subTask(PlatformLaunchMessages.CHECK_PKG_STATUS);
boolean isEflApp = PlatformProjectUtil.isEFLApplication(project);
if (selecteBsPkgs != null && !selecteBsPkgs.isEmpty()) {
installPkgsToRootstrap(selecteBsPkgs, IPkgCommander.TOOL.ZYPPER, monitor);
}
-
+ monitor.worked(2);
monitor.subTask(PlatformLaunchMessages.INSTALL_PACKAGES_TO_DEVICE);
if (selecteDvPkgs != null && !selecteDvPkgs.isEmpty()) {
if (isEflApp) {
installPkgsToDevice(selecteDvPkgs, IPkgCommander.TOOL.ZYPPER, monitor);
}
}
+ monitor.worked(3);
monitor.done();
}
private void applyReinstallOp(List<PkgStatus> list, boolean reinstallOp) {
for (PkgStatus status : list) {
- //status.setChecked(false);
-
if (status.getInstallInfo().equals(PkgInstallTypes.INSTALLED) && !reinstallOp) {
status.setChecked(false);
}
private boolean installPkgs(IPkgCommander commander, IPkgCommander.TOOL type,
List<IPackage> packages, IProgressMonitor monitor) throws InterruptedException {
- monitor.beginTask("Installing packages to rootstrap", 2);
List<String> paths = new ArrayList<String>();
ICommandStatus status = commander.installLocalPkg(paths.toArray(new String[0]), type,
monitor);
- monitor.worked(1);
if (!status.isOk()) {
newInterruptedException(status.getMessage());
}
}
- monitor.subTask("Checking installed successfully..");
String failedInstallPkgs = "";
for (IPackage p : packages) {
String name = p.getName();
failedInstallPkgs = failedInstallPkgs + " - " + name + newline();
}
}
- monitor.worked(2);
if (!failedInstallPkgs.isEmpty()) {
newInterruptedException(log);
newStatus.setNewVer(version);
if (part[0].equals("i")) {
newStatus.setInstalledVer(version);
- newStatus.setInstallInfo(PkgInstallTypes.INSTALLED);
- /*
- * pkgMap.put(name, new Package(name, version,
- * Package.INSTALLINFO.INSTALLED, version, arch));
- */
+ newStatus.setInstallInfo(PkgInstallTypes.INSTALLED);
}
pkgMap.put(name, newStatus);
- /*
- * else { pkgMap.put(name, new Package(name, "", version,
- * arch)); }
- */
}
}
}