Author: kkaempf Date: Thu Feb 14 15:14:39 2008 New Revision: 8687 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8687&view=rev Log: comments 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=8687&r1=8686&r2=8687&view=diff ============================================================================== --- trunk/sat-solver/tools/dumpsolv.c (original) +++ trunk/sat-solver/tools/dumpsolv.c Thu Feb 14 15:14:39 2008 @@ -176,16 +176,23 @@ return 0; } +/* + * dump all attributes for Id <p> + */ + 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) + if (data->state == REPODATA_STUB || data->state == REPODATA_ERROR) /* skip repodata of wrong state */ continue; - if (p < data->start || p >= data->end) + if (p < data->start || p >= data->end) /* skip repodata of wrong range */ continue; repodata_search(data, p - data->start, 0, dump_repoattrs_cb, 0); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org