From: Michael Schroeder Date: Thu, 7 Apr 2016 13:55:16 +0000 (+0200) Subject: We can put reldeps into incore for some time now X-Git-Tag: 0.6.20~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8d56407d9cef90c72b48d7a562bc7342851356a;p=thirdparty%2Flibsolv.git We can put reldeps into incore for some time now So remove the triggers workaround --- diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index d49f9d89..804d08ff 100644 --- a/ext/repo_rpmdb.c +++ b/ext/repo_rpmdb.c @@ -1014,24 +1014,11 @@ rpm2solv(Pool *pool, Repo *repo, Repodata *data, Solvable *s, RpmHead *rpmhead, repodata_set_sourcepkg(data, handle, sourcerpm); if ((flags & RPM_ADD_TRIGGERS) != 0) { - Id id, lastid; unsigned int ida = makedeps(pool, repo, rpmhead, TAG_TRIGGERNAME, TAG_TRIGGERVERSION, TAG_TRIGGERFLAGS, 0); - - lastid = 0; - for (; (id = repo->idarraydata[ida]) != 0; ida++) - { - /* we currently do not support rel ids in incore data, so - * strip off versioning information */ - while (ISRELDEP(id)) - { - Reldep *rd = GETRELDEP(pool, id); - id = rd->name; - } - if (id == lastid) - continue; + Id id, lastid = 0; + for (lastid = 0; (id = repo->idarraydata[ida]) != 0; ida++, lastid = id) + if (id != lastid) repodata_add_idarray(data, handle, SOLVABLE_TRIGGERS, id); - lastid = id; - } } if ((flags & RPM_ADD_NO_FILELIST) == 0) addfilelist(data, handle, rpmhead, flags);