diff -r f991e2623c41 -r 553d17d59714 razor.c --- a/razor.c Thu Feb 14 10:35:10 2008 -0500 +++ b/razor.c Thu Feb 14 10:35:25 2008 -0500 @@ -1460,8 +1460,8 @@ r = requires + *u; while (p < pend && - strcmp(&pool[r->name], &upool[p->name]) > 0 && - p->type != RAZOR_PROPERTY_PROVIDES) + p->type != RAZOR_PROPERTY_PROVIDES && + strcmp(&pool[r->name], &upool[p->name]) > 0) p++; /* If there is more than one version of a provides, * seek to the end for the highest version. */