From 837730e24bb66620041787e58eaaeb4e476000ba Mon Sep 17 00:00:00 2001 From: Hoseon LEE Date: Tue, 30 Apr 2013 02:21:48 +0900 Subject: [PATCH] Fixed failed to uninstall preload webapp. (part2) [Issue#] N/A [Problem] Manifest.xml is not removed. [Cause] The path of manifest.xml was wrong. [Solution] Add removing the manifest.xml [SCMRequest] N/A Change-Id: I1dc4b930a6281559131476862261a8218aae4d81 --- src/jobs/widget_uninstall/task_remove_files.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/jobs/widget_uninstall/task_remove_files.cpp diff --git a/src/jobs/widget_uninstall/task_remove_files.cpp b/src/jobs/widget_uninstall/task_remove_files.cpp old mode 100644 new mode 100755 index 2cd9538..709b4a5 --- 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); -- 2.7.4