summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 02:44:23 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 02:44:23 +0200
commit8b44eabff0dd0dcbee1af637bc7d9d2b9dfcd427 (patch)
treee95ceb7e71a39b80cc91b06968923083483542a3
parent23a177ef7c8c38c238ef06666f900f581b48298f (diff)
manager: if wanted dependencies are invalid, don't fail
-rw-r--r--manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/manager.c b/manager.c
index 42059a5007..87941e3f56 100644
--- a/manager.c
+++ b/manager.c
@@ -1175,8 +1175,8 @@ static int transaction_add_job_and_dependencies(Manager *m, JobType type, Unit *
if ((r = transaction_add_job_and_dependencies(m, JOB_START, dep, ret, !force, force, NULL)) < 0 && r != -EBADR)
goto fail;
SET_FOREACH(dep, ret->unit->meta.dependencies[UNIT_WANTS], i)
- if ((r = transaction_add_job_and_dependencies(m, JOB_START, dep, ret, false, force, NULL)) < 0 && r != -EBADR)
- goto fail;
+ if ((r = transaction_add_job_and_dependencies(m, JOB_START, dep, ret, false, force, NULL)) < 0)
+ log_warning("Cannot add dependency job for unit %s, ignoring: %s", unit_id(dep), strerror(-r));
SET_FOREACH(dep, ret->unit->meta.dependencies[UNIT_REQUISITE], i)
if ((r = transaction_add_job_and_dependencies(m, JOB_VERIFY_ACTIVE, dep, ret, true, force, NULL)) < 0 && r != -EBADR)
goto fail;