Remove manifest file in deinstallation 54/45654/1
authorTomasz Iwanek <t.iwanek@samsung.com>
Wed, 5 Aug 2015 14:01:07 +0000 (16:01 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Fri, 7 Aug 2015 13:52:54 +0000 (15:52 +0200)
Pkgmgr doesn't remove this file.

Change-Id: I1bc9b9ae6469731468d00ec18f712745d0f90087

src/common/step/step_unregister_app.cc

index adb23ed..1e9a031 100755 (executable)
@@ -5,6 +5,7 @@
 #include <unistd.h>
 
 #include <boost/filesystem.hpp>
+#include <boost/system/error_code.hpp>
 #include <pkgmgr_installer.h>
 #include <vcore/Certificate.h>
 
@@ -18,6 +19,7 @@
 namespace common_installer {
 namespace pkgmgr {
 
+namespace bs = boost::system;
 namespace fs = boost::filesystem;
 
 Step::Status StepUnregisterApplication::precheck() {
@@ -80,6 +82,10 @@ Step::Status StepUnregisterApplication::process() {
     return Status::ERROR;
   }
 
+  // remove manifest file
+  bs::error_code error;
+  fs::remove(context_->xml_path.get(), error);
+
   LOG(DEBUG) << "Successfully unregister the application";
 
   return Status::OK;