fix N_SE-50420 29/17529/1
authorliushuo <shuo0805.liu@samsung.com>
Tue, 3 Sep 2013 12:36:54 +0000 (20:36 +0800)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 7 Mar 2014 02:26:27 +0000 (11:26 +0900)
Change-Id: I4910ecc86ffe732c1211b5ac1ed61be6016fc25d

ism/extras/efl_setting/isf_setting_efl.cpp

index eee8e57..2eec4b0 100755 (executable)
@@ -328,9 +328,17 @@ static int pkg_list_cb (pkgmgrinfo_appinfo_h handle, void *user_data)
         return -1;
 
     if (strcmp (pkgid , id) == 0) {
-        _ise_option_module_stat = ISE_OPTION_MODULE_EXIST_XML;
-        ISFUG_DEBUG ("pkgid : %s\n", pkgid);
-        return -1;
+        char path[256] = {'\0'};
+        snprintf (path, sizeof (path), "/opt/apps/%s/setting/setting.xml", (char *)(pkgid));
+        if (0 != access(path, R_OK|W_OK|F_OK )) {
+            ISFUG_DEBUG ("/opt/apps/%s/setting/setting.xml not found \n", pkgid);
+            return 0;
+        } else {
+            _ise_option_module_stat = ISE_OPTION_MODULE_EXIST_XML;
+            ISFUG_DEBUG ("/opt/apps/%s/setting/setting.xml exists\n", pkgid);
+            return -1;
+        }
+
     }
     else {
         ISFUG_DEBUG ("%s", pkgid);