From 7fbb6ad42742ebc5e6ec244eedc85e9ac0a6236d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 20 Jul 2009 19:42:15 +0100 Subject: Don't provide ourself, fixes #190 --- src/librc/librc-depend.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/librc/librc-depend.c') 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 && -- cgit v1.2.3