ref: refs/heads/master commit bee1c417d56d1bc1050a80718a3ebefd93a0085a Author: Michael Schroeder <mls@suse.de> Date: Wed Jul 29 15:32:29 2009 +0200 - allow epoch-less evr limiting --- examples/solv.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/examples/solv.c b/examples/solv.c index 03af6ec..328aff5 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -1645,6 +1645,7 @@ limitevr(Pool *pool, char *evr, Queue *job, Id archid) int matched = 0; int i, j; Solvable *s; + const char *sevr; queue_init(&mq); for (i = 0; i < job->count; i += 2) @@ -1655,7 +1656,10 @@ limitevr(Pool *pool, char *evr, Queue *job, Id archid) s = pool_id2solvable(pool, p); if (archid && s->arch != archid) continue; - if (evrcmp_str(pool, id2str(pool, s->evr), evr, EVRCMP_MATCH) == 0) + sevr = id2str(pool, s->evr); + if (!strchr(evr, ':') && strchr(sevr, ':')) + sevr = strchr(sevr, ':') + 1; + if (evrcmp_str(pool, sevr, evr, EVRCMP_MATCH) == 0) queue_push(&mq, p); } if (mq.count) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org