Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / filesystem / step_recover_globalapp_symlinks.cc
1 // Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
4
5 #include "common/step/filesystem/step_recover_globalapp_symlinks.h"
6
7 #include "common/shared_dirs.h"
8
9 namespace fs = std::filesystem;
10
11 namespace common_installer {
12 namespace filesystem {
13
14 Step::Status StepRecoverGlobalAppSymlinks::RecoveryReadonlyUpdateInstall() {
15   if (!DeleteGlobalAppSymlinksForAllUsers(context_->pkgid.get())) {
16     LOG(ERROR) << "Failed to delete globalapp symlinks";
17     return Status::GLOBALSYMLINK_ERROR;
18   }
19   return Status::OK;
20 }
21
22 }  // namespace filesystem
23 }  // namespace common_installer