import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
-import org.eclipse.jgit.util.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tizen.common.TizenPlatformConstants;
monitor.subTask("Downloading coredump archive...");
try {
String workingDir = CommandLauncherUtil.getCoredumpDir();
- FileUtils.mkdirs(new File(workingDir), true);
+ FileUtil.createDirectory(workingDir);
String coredumpPath = corefileEntry.getFullPath();
String fileName = new Path(coredumpPath).lastSegment().replace(".tar.gz", "");
String destFilePrefix = new Path(workingDir).append(fileName).toOSString();
monitor.subTask("Extracting coredump archive...");
try {
String workingDir = CommandLauncherUtil.getCoredumpDir();
- FileUtils.mkdirs(new File(workingDir), true);
-
+ FileUtil.createDirectory(workingDir);
// extract .coredump file
String cmd = String.format(TizenPlatformConstants.DEBUG_COREFILE_EXTRACT_COMMAND,
coredumpArchive, workingDir, coreExpr);
Package pkg = new Package(name, version, arch);
PkgStatus newStatus = new PkgStatus(pkg);
newStatus.setNewVer(version);
- if (part[0].equals("i")) {
- newStatus.setInstalledVer(version);
- newStatus.setInstallInfo(PkgInstallTypes.INSTALLED);
+ if (pkgMap.get(name) == null) {
+ if (part[0].equals("i")) {
+ newStatus.setInstalledVer(version);
+ newStatus.setInstallInfo(PkgInstallTypes.INSTALLED);
+ }
+ pkgMap.put(name, newStatus);
}
- pkgMap.put(name, newStatus);
}
}
}
-
return pkgMap;
}
Package pkg = new Package(name, version, arch);
PkgStatus newStatus = new PkgStatus(pkg);
newStatus.setNewVer(version);
- if (part[0].equals("i")) {
- newStatus.setInstalledVer(version);
- newStatus.setInstallInfo(PkgInstallTypes.INSTALLED);
+ if (pkgMap.get(name) == null) {
+ if (part[0].equals("i")) {
+ newStatus.setInstalledVer(version);
+ newStatus.setInstallInfo(PkgInstallTypes.INSTALLED);
+ }
+ pkgMap.put(name, newStatus);
}
- pkgMap.put(name, newStatus);
}
}
}