[INST] Fix bug that installmanager cannot get installed SDK. 93/15093/1
authoryongsung1.kim <yongsung1.kim@samsung.com>
Thu, 16 Jan 2014 01:45:04 +0000 (10:45 +0900)
committeryongsung1.kim <yongsung1.kim@samsung.com>
Thu, 16 Jan 2014 01:45:04 +0000 (10:45 +0900)
Installmanager cannot get installed SDK on system because it cannot read
the installedpackage.list file. We fixed if condition which check to
exist installedpackage.list file.

Change-Id: I507f353df6e8cdb419c146f410b798d242837386
Signed-off-by: yongsung1.kim <yongsung1.kim@samsung.com>
InstallManager_java/src/org/tizen/installmanager/core/InstallManager.java

index da8ca8a..1709c73 100644 (file)
@@ -147,7 +147,7 @@ public class InstallManager {
 
        private void initPackageManager(Collection<String> repositoryURLs) {
                File installedPackageListFile = null;
-               if (Registry.targetPath.equalsIgnoreCase("")) {
+               if (!Registry.targetPath.equalsIgnoreCase("")) {
                        installedPackageListFile = new File(PathUtil.get(
                                        PathUtil.get(Registry.targetPath, Config.INFO_DIRECTORY),
                                        Config.INSTALLED_PACKAGE_LIST_FILE_NAME));