Lines Matching refs:best
541 Solvable *s, *best; in prune_to_best_version() local
551 best = 0; in prune_to_best_version()
560 if (!best) /* if no best yet, the current is best */ in prune_to_best_version()
562 best = s; in prune_to_best_version()
567 if (best->name != s->name) /* new name */ in prune_to_best_version()
569 plist->elements[j++] = best - pool->solvables; /* move old best to front */ in prune_to_best_version()
570 best = s; /* take current as new best */ in prune_to_best_version()
574 if (best->evr != s->evr) /* compare evr */ in prune_to_best_version()
576 if (pool_evrcmp(pool, best->evr, s->evr, EVRCMP_COMPARE) < 0) in prune_to_best_version()
577 best = s; in prune_to_best_version()
580 plist->elements[j++] = best - pool->solvables; /* finish last group */ in prune_to_best_version()