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.
5 #include "common/step/filesystem/step_recover_globalapp_symlinks.h"
7 #include "common/shared_dirs.h"
9 namespace fs = std::filesystem;
11 namespace common_installer {
12 namespace filesystem {
14 Step::Status StepRecoverGlobalAppSymlinks::RecoveryReadonlyUpdateInstall() {
15 if (!DeleteGlobalAppSymlinksForAllUsers(context_->pkgid.get())) {
16 LOG(ERROR) << "Failed to delete globalapp symlinks";
17 return Status::GLOBALSYMLINK_ERROR;
22 } // namespace filesystem
23 } // namespace common_installer