Fix return value when the given package is not exist 07/48807/1 accepted/tizen/mobile/20150930.235933 accepted/tizen/tv/20150930.235942 accepted/tizen/wearable/20150930.235958 submit/tizen/20150930.070601
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 30 Sep 2015 05:58:42 +0000 (14:58 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 30 Sep 2015 05:58:42 +0000 (14:58 +0900)
should return error code of invalid parameter

Change-Id: I13bf87a8f9deabfe1ebd42c8821cabb8d9cc31e7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
client/src/pkgmgr.c

index d9e0b81..8f366cb 100644 (file)
@@ -1003,7 +1003,7 @@ API int pkgmgr_client_usr_uninstall(pkgmgr_client *pc, const char *pkg_type,
 
        ret = pkgmgrinfo_pkginfo_get_usr_pkginfo(pkgid, uid, &handle);
        if (ret < 0)
-               return PKGMGR_R_ERROR;
+               return PKGMGR_R_EINVAL;
 
        ret = pkgmgrinfo_pkginfo_get_type(handle, &pkgtype);
        if (ret < 0) {