projects
/
platform
/
core
/
appfw
/
app-installers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ead001a
)
Fixture for StepGenerateXml
55/45655/1
author
Tomasz Iwanek
<t.iwanek@samsung.com>
Fri, 7 Aug 2015 09:37:40 +0000
(11:37 +0200)
committer
Tomasz Iwanek
<t.iwanek@samsung.com>
Fri, 7 Aug 2015 13:57:03 +0000
(15:57 +0200)
Platform manifest should be removed on rollback.
Change-Id: I1e98f76e63306668a2ef7b960f2193d9fdaf2e0b
src/common/step/step_generate_xml.cc
patch
|
blob
|
history
diff --git
a/src/common/step/step_generate_xml.cc
b/src/common/step/step_generate_xml.cc
index
31f0299
..
c945f40
100755
(executable)
--- a/
src/common/step/step_generate_xml.cc
+++ b/
src/common/step/step_generate_xml.cc
@@
-304,10
+304,12
@@
Step::Status StepGenerateXml::process() {
return Status::OK;
}
-Step::Status StepGenerateXml::undo() {
+Step::Status StepGenerateXml::undo() {
+ bs::error_code error;
if (fs::exists(icon_path_))
- fs::remove_all(icon_path_);
-
+ fs::remove_all(icon_path_, error);
+ if (fs::exists(context_->xml_path.get()))
+ fs::remove_all(context_->xml_path.get(), error);
return Status::OK;
}