> ...but if we add wildcards, we are completely screwed because it's
> mostly not possible to work out what the * is hiding.
>
>  Eg.
> 
>  *-a-a matches the name of "a-a-a-a"  (version b-c) and the
> version-release of "a".
>  a-*-a matches "a", "a-a-a-a" (version a-a) and "a-b-c-d".

I don't have to know that.

A = input pattern
B = A with everything after the first '-' replaced with '*'

Then if pkg X matches A and pkg Y is a newer version of X,
then Y must match B.

Yes, it's conservative, so if there's '-' in package name
we unnecessarily search for all packages with that prefix, 
but that does not break the above.
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to