From 51a9c647b9a1c209d57472fcd356368a00846a80 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 30 Jan 2008 13:37:20 +0000 Subject: Allow !net to remove the net provision from dependencies. --- src/librc/librc-depend.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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); -- cgit v1.2.3