diff options
author | Roy Marples <roy@marples.name> | 2008-01-30 13:37:20 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-30 13:37:20 +0000 |
commit | 51a9c647b9a1c209d57472fcd356368a00846a80 (patch) | |
tree | 607e6594164b6c41447d46ae7a81a4915ed9ad67 /src | |
parent | 0c75e888fcc71599f3a695ae54a7a0b1beb16f0f (diff) |
Allow !net to remove the net provision from dependencies.
Diffstat (limited to 'src')
-rw-r--r-- | src/librc/librc-depend.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index c6ebf495..ad8e73d1 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -832,6 +832,12 @@ bool rc_deptree_update (void) depend[len - 2] == 's' && depend[len - 1] == 'h') continue; + + /* Remove our dependency if instructed */ + if (depend[0] == '!') { + rc_strlist_delete (&deptype->services, depend + 1); + continue; + } rc_strlist_addsort (&deptype->services, depend); |