Skip to content
Snippets Groups Projects
Commit 758969b0 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

pick the field to check in function of the service type

parent 2aeb4f6e
No related branches found
No related tags found
No related merge requests found
...@@ -997,13 +997,15 @@ int ss_resolve_add_rdeps(genalloc *tokeep, ss_resolve_t *res, char const *src) ...@@ -997,13 +997,15 @@ int ss_resolve_add_rdeps(genalloc *tokeep, ss_resolve_t *res, char const *src)
} }
if ((res->type == TYPE_BUNDLE || res->type == TYPE_MODULE) && res->ndeps) if ((res->type == TYPE_BUNDLE || res->type == TYPE_MODULE) && res->ndeps)
{ {
if (!sastr_clean_string(&tmp,res->sa.s + res->deps)) goto err ; uint32_t deps = res->type == TYPE_MODULE ? res->contents : res->deps ;
if (!sastr_clean_string(&tmp,res->sa.s + deps)) goto err ;
ss_resolve_t dres = RESOLVE_ZERO ; ss_resolve_t dres = RESOLVE_ZERO ;
for (; a < tmp.len ; a += strlen(tmp.s + a) + 1) for (; a < tmp.len ; a += strlen(tmp.s + a) + 1)
{ {
char *name = tmp.s + a ; char *name = tmp.s + a ;
if (!ss_resolve_check(src,name)) goto err ; if (!ss_resolve_check(src,name)) goto err ;
if (!ss_resolve_read(&dres,src,name)) goto err ; if (!ss_resolve_read(&dres,src,name)) goto err ;
if (dres.type == TYPE_CLASSIC) continue ;
if (!ss_resolve_cmp(tokeep,name)) if (!ss_resolve_cmp(tokeep,name))
{ {
if (!ss_resolve_append(tokeep,&dres)) goto err ; if (!ss_resolve_append(tokeep,&dres)) goto err ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment