-#git:framework/web/wrt-installer wrt-installer 0.1.48
+#git:framework/web/wrt-installer wrt-installer 0.1.49
Name: wrt-installer
Summary: Installer for tizen Webruntime
-Version: 0.1.48
+Version: 0.1.49
Release: 1
Group: Development/Libraries
License: Apache License, Version 2.0
std::ostringstream manifest_name;
manifest_name << m_context.tzPkgid << ".xml";
std::ostringstream destFile;
- destFile << "/opt/share/packages" << "/"; //TODO constant with path
+ const std::string PRELOAD_INSTALLED_PATH = "/usr/apps";
+ if (0 == (m_context.installedPath).compare(0, PRELOAD_INSTALLED_PATH.length(),
+ PRELOAD_INSTALLED_PATH)) {
+ LogDebug("This widget is prealoded.");
+ destFile << "/usr/share/packages" << "/"; //TODO constant with path
+ } else {
+ destFile << "/opt/share/packages" << "/"; //TODO constant with path
+ }
destFile << manifest_name.str();
int ret1 = pkgmgr_parser_parse_manifest_for_uninstallation(
destFile.str().c_str(), NULL);