summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuyoung Jang <duyoung.jang@samsung.com>2013-01-29 15:03:37 +0900
committerDuyoung Jang <duyoung.jang@samsung.com>2013-01-29 15:03:37 +0900
commite84e874b11e56408ebaf46fd108f0a2ef61ecb6e (patch)
tree5686031176ac411afa833a1ac3e3e592ce3169fe
parent96f87a3b5d51cbc21fddee596fc7c01ccb3508b1 (diff)
downloadinstaller-e84e874b11e56408ebaf46fd108f0a2ef61ecb6e.tar.gz
installer-e84e874b11e56408ebaf46fd108f0a2ef61ecb6e.tar.bz2
installer-e84e874b11e56408ebaf46fd108f0a2ef61ecb6e.zip
Fix app2sd
Change-Id: I3e9459ea5af3257e68ff16feb8a132dd4a59938d Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
-rwxr-xr-xinc/InstallerDefs.h2
-rwxr-xr-xsrc/Manager/InstallerManager.cpp12
2 files changed, 10 insertions, 4 deletions
diff --git a/inc/InstallerDefs.h b/inc/InstallerDefs.h
index 9320f83..fc04d49 100755
--- a/inc/InstallerDefs.h
+++ b/inc/InstallerDefs.h
@@ -21,7 +21,7 @@
#ifndef _INSTALLER_DEFS_H_
#define _INSTALLER_DEFS_H_
-#define OSP_INSTALLER_VERSION "osp-installer version = 20130125.1"
+#define OSP_INSTALLER_VERSION "osp-installer version = 20130129.1"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
diff --git a/src/Manager/InstallerManager.cpp b/src/Manager/InstallerManager.cpp
index 7ecc530..0ca92dc 100755
--- a/src/Manager/InstallerManager.cpp
+++ b/src/Manager/InstallerManager.cpp
@@ -580,6 +580,15 @@ InstallerManager::RequestMove(const PackageId& packageId, int moveType)
rootPath = pPackageInfoImpl->GetAppRootPath();
+ pHandle = app2ext_init(APP2EXT_SD_CARD);
+ TryCatch(pHandle, errorType = INSTALLER_ERROR_INTERNAL_STATE, "app2ext_init() failed");
+
+ if (location == APP2EXT_MOVE_TO_PHONE)
+ {
+ res = pHandle->interface.enable(pPackageId.get());
+ TryCatch(res == 0, errorType = INSTALLER_ERROR_INTERNAL_STATE, "pHandle->interface.eable() failed [%d]", res);
+ }
+
pDir = new (std::nothrow) Directory;
TryCatch(pDir, errorType = INSTALLER_ERROR_OUT_OF_MEMORY, "pDir is null");
@@ -632,9 +641,6 @@ InstallerManager::RequestMove(const PackageId& packageId, int moveType)
pDirectoryList = g_list_append(pDirectoryList, pDirDetails);
}
- pHandle = app2ext_init(APP2EXT_SD_CARD);
- TryCatch(pHandle, errorType = INSTALLER_ERROR_INTERNAL_STATE, "app2ext_init() failed");
-
res = pHandle->interface.move(pPackageId.get(), pDirectoryList, location);
TryCatch(res == 0, errorType = INSTALLER_ERROR_INTERNAL_STATE, "pHandle->interface.move() failed [%d]", res);