diff options
author | Duyoung Jang <duyoung.jang@samsung.com> | 2013-10-17 15:31:00 +0900 |
---|---|---|
committer | Duyoung Jang <duyoung.jang@samsung.com> | 2013-10-17 15:31:00 +0900 |
commit | d3bbf933c704e340e42914e4fa755d926dad7a41 (patch) | |
tree | d172fc23c2933ba60105053e7f1c9de3cd7672b8 /src | |
parent | bce6ef705a1e1074ed6c656d2c5ddda9d00bc3fd (diff) | |
download | installer-d3bbf933c704e340e42914e4fa755d926dad7a41.tar.gz installer-d3bbf933c704e340e42914e4fa755d926dad7a41.tar.bz2 installer-d3bbf933c704e340e42914e4fa755d926dad7a41.zip |
Add log for app2sd
Change-Id: I3f57da23ba5b639f5f8cfabc98f59898c7c553de
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/Manager/InstallerManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Manager/InstallerManager.cpp b/src/Manager/InstallerManager.cpp index 6b5b45b..4711d97 100755 --- a/src/Manager/InstallerManager.cpp +++ b/src/Manager/InstallerManager.cpp @@ -1468,6 +1468,7 @@ InstallerManager::RequestMove(const PackageId& packageId, int moveType, void* pP TryCatch(pPackageInfoImpl, errorType = INSTALLER_ERROR_INTERNAL_STATE, "GetInstance() failed."); rootPath = pPackageInfoImpl->GetAppRootPath(); + TryCatch(rootPath.IsEmpty() == false, errorType = INSTALLER_ERROR_INTERNAL_STATE, "rootPath is empty."); pHandle = app2ext_init(APP2EXT_SD_CARD); TryCatch(pHandle, errorType = INSTALLER_ERROR_INTERNAL_STATE, "app2ext_init() failed."); @@ -1489,7 +1490,6 @@ InstallerManager::RequestMove(const PackageId& packageId, int moveType, void* pP while (pDirEnum->MoveNext() == E_SUCCESS) { DirEntry entry = pDirEnum->GetCurrentDirEntry(); - String entryName = entry.GetName(); if (entryName == L"." || entryName == L"..") @@ -1536,8 +1536,10 @@ InstallerManager::RequestMove(const PackageId& packageId, int moveType, void* pP pDirectoryList = g_list_append(pDirectoryList, pDirDetails); } + AppLog("[app2sd] pHandle->interface.move(%s, %d)", pPackageId.get(), (int)location); res = pHandle->interface.move(pPackageId.get(), pDirectoryList, location); TryCatch(res == 0, errorType = INSTALLER_ERROR_INTERNAL_STATE, "pHandle->interface.move() failed. res = [%d]", res); + AppLog("[app2sd] pHandle->interface.move(), res = [%d]", res); CATCH: if (pHandle) |