aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/librc/librc-depend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c
index 1fb6506c..ef82512a 100644
--- a/src/librc/librc-depend.c
+++ b/src/librc/librc-depend.c
@@ -802,6 +802,11 @@ rc_deptree_update(void)
continue;
}
+ /* Don't provide ourself */
+ if (strcmp(type, "iprovide") == 0 &&
+ strcmp(depend, service) == 0)
+ continue;
+
/* .sh files are not init scripts */
l = strlen(depend);
if (l > 2 &&