diff options
Diffstat (limited to 'src/librc/librc-depend.c')
-rw-r--r-- | src/librc/librc-depend.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index a4ac6535..26fc5c41 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -891,7 +891,11 @@ rc_deptree_update(void) dt->services = rc_stringlist_new(); STAILQ_INSERT_TAIL(&di->depends, dt, entries); } - rc_stringlist_add(dt->services, depinfo->service); + TAILQ_FOREACH(s2, dt->services, entries) + if (strcmp(s2->value, depinfo->service) == 0) + break; + if (!s2) + rc_stringlist_add(dt->services, depinfo->service); } } |