add a routine to check external pkg tizen_2.2 2.2.1_release submit/tizen_2.2/20131107.062307
authorjunsuk77.oh <junsuk77.oh@samsung.com>
Thu, 24 Oct 2013 02:13:36 +0000 (11:13 +0900)
committerjunsuk77.oh <junsuk77.oh@samsung.com>
Thu, 24 Oct 2013 02:13:36 +0000 (11:13 +0900)
Change-Id: I6ed5e19a0327567b9ddf9da6684a2b83c39d9f2d
Signed-off-by: junsuk77.oh <junsuk77.oh@samsung.com>
src/pkgmgr-info.c

index 89c1998..663275d 100755 (executable)
@@ -7182,6 +7182,11 @@ catch:
 
 API int pkgmgrinfo_client_request_enable_external_pkg(char *pkgid)
 {
+       retvm_if(pkgid == NULL, PMINFO_R_EINVAL, "pkgid is NULL\n");
+
+       if(__get_pkg_location(pkgid) != PMINFO_EXTERNAL_STORAGE)
+               return PMINFO_R_OK;
+
        _LOGD("call system server to enable app2ext");
        return mmc_mount_app2ext(pkgid);
 }