* @brief Header file for widget uninstall task to uninstall ospsvc
*/
#include <dpl/sstream.h>
+#include <dpl/utils/bash_utils.h>
#include <widget_uninstall/task_uninstall_ospsvc.h>
#include <widget_uninstall/job_widget_uninstall.h>
#include <widget_uninstall/uninstaller_context.h>
namespace {
const int MAX_BUF_SIZE = 128;
-const char* OSP_INSTALL_STR = "/usr/etc/package-manager/backend/oap -uv ";
+const char* OSP_INSTALL_STR = "/usr/etc/package-manager/backend/tpk -uv ";
}
namespace Jobs {
LogInfo("Step : Uninstall Osp service ");
std::ostringstream commStr;
- commStr << OSP_INSTALL_STR << m_context.pkgname;;
- LogDebug("@@osp uninstall command : " << commStr.str());
+ commStr << OSP_INSTALL_STR << BashUtils::escape_arg(m_context.tzPkgid);
+ LogDebug("osp uninstall command : " << commStr.str());
char readBuf[MAX_BUF_SIZE];
FILE *fd;
pclose(fd);
- LogInfo("Widget Can be uninstalled. Handle : " << m_context.widgetHandle);
+ LogInfo("Widget Can be uninstalled. Pkgname : " << m_context.tzPkgid);
m_context.job->UpdateProgress(UninstallerContext::UNINSTALL_REMOVE_OSPSVC,
"Uninstall OSP service finished");
}