X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ext%2Frepo_comps.c;h=8f364ddc9c00ff0a4ff2b25d7668ca5f5624b35f;hb=86e8dd2dcdd9c6c0de4a78ea9a039c9b64440757;hp=c86089a0877ffba44a70130ed4a11d510ca2d955;hpb=d42cdfdc8b9ef0b24fe3f54488315383dad12159;p=platform%2Fupstream%2Flibsolv.git diff --git a/ext/repo_comps.c b/ext/repo_comps.c index c86089a..8f364dd 100644 --- a/ext/repo_comps.c +++ b/ext/repo_comps.c @@ -263,7 +263,7 @@ endElement(void *userData, const char *name) case STATE_ID: case STATE_CID: - s->name = pool_str2id(pd->pool, join2(&pd->jd, "pattern", ":", pd->content), 1); + s->name = pool_str2id(pd->pool, join2(&pd->jd, pd->state == STATE_ID ? "group" : "category", ":", pd->content), 1); break; case STATE_NAME: @@ -284,7 +284,7 @@ endElement(void *userData, const char *name) break; case STATE_GROUPID: - id = pool_str2id(pd->pool, join2(&pd->jd, "pattern", ":", pd->content), 1); + id = pool_str2id(pd->pool, join2(&pd->jd, "group", ":", pd->content), 1); s->requires = repo_addid_dep(pd->repo, s->requires, id, 0); break;