On Sun, Dec 21, 2008, Jeff Johnson wrote:

> On Dec 21, 2008, at 3:28 AM, Jeff Johnson wrote:
>
>> Time to get out of the briar patch methinks.
>
> Since we're on the topic of EVR diddle-up's anyways ...
>
> There's a (fairly sensible imho) OpenPKG patch to treat '*'
> as a wildcard suffix for V or R comparisons.
>
> So
>     Requires: rpm = 4.4.2*
> will match
>     Provides: rpm = 4.4.2.3.4.5.6
> and any later version in the 4.4.2 sequence, but not
>     Provides: rpm = 4.6.0.rc3.f11.rf

An additional reason for originally introducing "*" was to allow to
compare "E*R" instead of "EVR", i.e., if a distribution uses fully
consistent and fixed-scheme "R" (as in OpenPKG) one sometimes want to
compare just on "R" and not on "VR" ("E" is even ignored then) -- for
instance on vendor _version_ downgrades which are still _packaging_
upgrades. With the "*" one can say "Requires: foo >= *-1.2.3" and this
way a "foo-4-1.2.3" matches while the "foo-5-1.2.2" does not. With the
usual "EVR" comparison "foo >= 5-1.2.2" one has a problem until one
re-introduces an extra "E" here. So, the wildcard also does allow one to
logically "skip" parts of "EVR" in comparisons...

                                       Ralf S. Engelschall
                                       r...@engelschall.com
                                       www.engelschall.com

______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to