Author: mlschroe Date: Mon Feb 18 19:11:40 2008 New Revision: 8788 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8788&view=rev Log: - use SEARCH_NO_STORAGE_SOLVABLE instead of duplication code - print rpmdbid, too Modified: trunk/sat-solver/tools/dumpsolv.c Modified: trunk/sat-solver/tools/dumpsolv.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/dumpsolv.c?rev=8788&r1=8787&r2=8788&view=diff ============================================================================== --- trunk/sat-solver/tools/dumpsolv.c (original) +++ trunk/sat-solver/tools/dumpsolv.c Mon Feb 18 19:11:40 2008 @@ -188,19 +188,7 @@ void dump_repoattrs(Repo *repo, Id p) { - int i; - Repodata *data; - /* - * look through all repodata(s) to find the one covering the right range of Ids - */ - for (i = 0, data = repo->repodata; i < repo->nrepodata; i++, data++) - { - if (data->state == REPODATA_STUB || data->state == REPODATA_ERROR) /* skip repodata of wrong state */ - continue; - if (p < data->start || p >= data->end) /* skip repodata of wrong range */ - continue; - repodata_search(data, p - data->start, 0, dump_repoattrs_cb, 0); - } + repo_search(repo, p, 0, 0, SEARCH_NO_STORAGE_SOLVABLE, dump_repoattrs_cb, 0); } void @@ -312,6 +300,8 @@ printids(repo, "supplements", s->supplements); printids(repo, "enhances", s->enhances); printids(repo, "freshens", s->freshens); + if (repo->rpmdbid) + printf("rpmdbid: %u\n", repo->rpmdbid[i - repo->start]); #if 0 dump_attrs (repo, n - 1); #endif -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org