X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjobs%2Fwidget_install%2Ftask_unzip.cpp;h=dd9bdc8130313cec3452d56f5b1fcc1cbd224920;hb=8ec41fa51d9e04f17c66ef90bbaa9711de29e342;hp=65282d87ebd818013b504d7001785fa75a43d3d0;hpb=c4570c73c1e9eff27897540cccf3260b136eadc7;p=framework%2Fweb%2Fwrt-installer.git diff --git a/src/jobs/widget_install/task_unzip.cpp b/src/jobs/widget_install/task_unzip.cpp index 65282d8..dd9bdc8 100644 --- a/src/jobs/widget_install/task_unzip.cpp +++ b/src/jobs/widget_install/task_unzip.cpp @@ -29,6 +29,7 @@ #include #include #include +#include using namespace WrtDB; @@ -60,7 +61,6 @@ PathAndFilePair SplitFileAndPath(const std::string &filePath) position), filePath.substr(position + 1)); } - } namespace Jobs { @@ -102,15 +102,23 @@ void TaskUnzip::StepCreateTempPath() { // Step succedded, save temporary widget path m_installerContext.tempWidgetPath = createTempPath(); + std::ostringstream path; if (m_installerContext.widgetConfig.pType == PKG_TYPE_TIZEN_WITHSVCAPP) { std::ostringstream tempRoot; tempRoot << m_installerContext.tempWidgetPath; tempRoot << "/" << GlobalConfig::GetWidgetSrcPath(); m_installerContext.tempWidgetRoot = tempRoot.str(); + + path << GlobalConfig::GetUserInstalledWidgetPath() << "/"; + path << m_installerContext.widgetConfig.pkgname; } else { m_installerContext.tempWidgetRoot = m_installerContext.tempWidgetPath; + path << GlobalConfig::GetUserInstalledWidgetPath() << "/"; + path << m_installerContext.widgetConfig.pkgname << "/"; + path << GlobalConfig::GetWidgetSrcPath(); } + m_installerContext.installPath = path.str(); m_installerContext.job->UpdateProgress( InstallerContext::INSTALL_CREATE_TEMPDIR,