- when tried to uninstall preload-rw package but keep
rwdata, RO directory should be removed
Related changes:
[wgt-backend] : https://review.tizen.org/gerrit/102026
Change-Id: I4f42eac12b6b1d69aedee2627a32f7fc4b1e55d9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
static const std::vector<std::string> dirs_to_ignore = {
{"cache"},
{"data"},
- {"shared"},
+ {"shared/data"},
+ {"shared/cache"},
+ {"shared/trusted"},
};
return std::find(dirs_to_ignore.begin(), dirs_to_ignore.end(), path) !=
dirs_to_ignore.end();
if (error)
LOG(ERROR) << "Can't remove path:" << itr->path().c_str();
}
+
+ if (context_->keep_rwdata.get()) {
+ bf::remove_all(pkg_path, error);
+ if (error)
+ LOG(ERROR) << "Can't remove directory:" <<
+ context_->pkg_path.get().c_str();
+ }
+
} else {
bf::remove_all(pkg_path, error);
if (error)