m_installerContext.m_quiet = m_jobStruct.m_quiet;
ConfigureResult result = PrePareInstallation(widgetPath);
- m_installerContext.job->SetProgressFlag(true);
if (result == ConfigureResult::Ok) {
LogInfo("Configure installation succeeded");
+ m_installerContext.job->SetProgressFlag(true);
AddTask(new TaskRecovery(m_installerContext));
} else if (result == ConfigureResult::Updated) {
LogInfo("Configure installation updated");
LogInfo("Widget Update");
+ m_installerContext.job->SetProgressFlag(true);
if (m_installerContext.widgetConfig.packagingType !=
WrtDB::PKG_TYPE_HOSTED_WEB_APP &&
m_installerContext.widgetConfig.packagingType !=
m_installerContext.widgetConfig.tzPkgid = *configInfo.tizenPkgId;
} else {
- std::string appid = DPL::ToUTF8String(*configInfo.tizenAppId);
+ DPL::String appid = *configInfo.tizenAppId;
if(appid.length() > PACKAGE_ID_LENGTH) {
m_installerContext.widgetConfig.tzPkgid =
- DPL::FromUTF8String(appid.substr(PACKAGE_ID_LENGTH));
- } else {
- m_installerContext.widgetConfig.tzPkgid =
- *configInfo.tizenAppId;
- }
- shouldMakeAppid = true;
+ appid.substr(0, PACKAGE_ID_LENGTH);
+ } //else: this means appId is broken anyway
}
} else {
shouldMakeAppid = true;
result != ConfigureResult::Updated))
{
//it is true when tizenId does not fit REG_TIZENID_PATTERN
- LogError("tizen_id provided but not proper.");
+ LogError("tizen_id provided but not proper or pkgId directory exists");
+ //TODO(t.iwanek): appId is unique, what about installation of abcdefghij.test1 and abcdefghij.test2?
regfree(®);
return ConfigureResult::Failed;
}