From: Jihoon Chung Date: Tue, 30 Apr 2013 04:48:05 +0000 (+0900) Subject: [Release] wrt-installer_0.1.49 X-Git-Tag: submit/tizen_2.1/20130514.055413~6 X-Git-Url: http://review.tizen.org/git/?p=framework%2Fweb%2Fwrt-installer.git;a=commitdiff_plain;h=4c3a03cc7892389de60114e3ef3afff627fe919a [Release] wrt-installer_0.1.49 Change-Id: I7d0810f432296b2f17270de20f68f4957ae99dd7 --- diff --git a/packaging/wrt-installer.spec b/packaging/wrt-installer.spec index a85cfb8..fdb0340 100644 --- a/packaging/wrt-installer.spec +++ b/packaging/wrt-installer.spec @@ -1,7 +1,7 @@ -#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 diff --git a/src/jobs/widget_uninstall/task_remove_files.cpp b/src/jobs/widget_uninstall/task_remove_files.cpp index 2cd9538..709b4a5 100644 --- a/src/jobs/widget_uninstall/task_remove_files.cpp +++ b/src/jobs/widget_uninstall/task_remove_files.cpp @@ -113,7 +113,14 @@ void TaskRemoveFiles::StepRemoveManifest() 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);