From: Jungmin, Park Date: Thu, 16 May 2013 11:54:12 +0000 (+0900) Subject: Revert "Revert "Change MoveTo API()" (for RC29)" X-Git-Tag: submit/tizen_2.2/20130714.152805~165^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c9584c7d13a11fa5fce03197b0e988f41957eca;p=framework%2Fosp%2Fappfw.git Revert "Revert "Change MoveTo API()" (for RC29)" <== This was reverted for RC29 temporary, so I'm restoring again. This reverts commit 94cdabdb7a100f0810be6c26cd62c77ad68588fe --- diff --git a/src/app/package/FAppPkg_PackageManagerImpl.cpp b/src/app/package/FAppPkg_PackageManagerImpl.cpp index e729e03..c6aa35d 100755 --- a/src/app/package/FAppPkg_PackageManagerImpl.cpp +++ b/src/app/package/FAppPkg_PackageManagerImpl.cpp @@ -551,9 +551,10 @@ _PackageManagerImpl::MoveToExternalStorage(const PackageId& packageId) SysTryReturnResult(NID_APP, __pRequestClient != null, E_SYSTEM, "pkgmgr_client_new(PC_REQUEST) failed"); } - res = pkgmgr_client_move(__pRequestClient, pType, pPackageId.get(), PM_MOVE_TO_SDCARD, PM_QUIET); + SysLog(NID_APP, "pkgmgr_client_request_service(PM_REQUEST_MOVE, 0, %s, %s)", pType, pPackageId.get()); + res = pkgmgr_client_request_service(PM_REQUEST_MOVE, 1, __pRequestClient, pType, pPackageId.get(), null, null, null); - if(packageInfoHandle) + if (packageInfoHandle) { pkgmgrinfo_pkginfo_destroy_pkginfo(packageInfoHandle); } @@ -618,9 +619,10 @@ _PackageManagerImpl::MoveToInternalStorage(const PackageId& packageId) SysTryReturnResult(NID_APP, __pRequestClient != null, E_SYSTEM, "pkgmgr_client_new(PC_REQUEST) failed"); } - res = pkgmgr_client_move(__pRequestClient, pType, pPackageId.get(), PM_MOVE_TO_INTERNAL, PM_QUIET); + SysLog(NID_APP, "pkgmgr_client_request_service(PM_REQUEST_MOVE, 1, %s, %s)", pType, pPackageId.get()); + res = pkgmgr_client_request_service(PM_REQUEST_MOVE, 0, __pRequestClient, pType, pPackageId.get(), null, null, null); - if(packageInfoHandle) + if (packageInfoHandle) { pkgmgrinfo_pkginfo_destroy_pkginfo(packageInfoHandle); }