diff options
author | Roy Marples <roy@marples.name> | 2009-07-20 19:42:15 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-07-20 19:42:15 +0100 |
commit | 7fbb6ad42742ebc5e6ec244eedc85e9ac0a6236d (patch) | |
tree | 5485963bffb3bc22a580fed7d4f7fb9d2ad34e75 /src/librc | |
parent | 08b566466899a4de872912ab6684fb7cd1eb5c95 (diff) |
Don't provide ourself, fixes #190
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc-depend.c | 5 |
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 && |