summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apexd/apexd.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/apexd/apexd.cpp b/apexd/apexd.cpp
index 2894fed..16b5034 100644
--- a/apexd/apexd.cpp
+++ b/apexd/apexd.cpp
@@ -1175,10 +1175,8 @@ Status stagePackages(const std::vector<std::string>& tmpPaths) {
std::string dest_path = path_fn(*apex_file);
if (access(dest_path.c_str(), F_OK) == 0) {
- LOG(DEBUG) << dest_path << " already exists. Unlinking it";
- if (unlink(dest_path.c_str()) != 0) {
- return Status::Fail(PStringLog() << "Failed to unlink " << dest_path);
- }
+ LOG(DEBUG) << dest_path << " already exists. Skipping";
+ continue;
}
if (link(apex_file->GetPath().c_str(), dest_path.c_str()) != 0) {
// TODO: Get correct binder error status.