As warned a couple months back (March?) on this list, I
am going to be changing rpmvercmp to call through a vector
instead.
All current packaging will continue to use the existing
rpmvercmp.
I will add the Debian dpkg EVR comparison as a 2nd means of
doing
EVR comparison through (*rpmvercmp) as soon as I can
identify an
implementation.
The Debian dpkg EVR comparison is quite well described in
section 5.6.12
in the document at
http://www.debian.org/doc/debian-policy/ch-controlf
ields.html
I will add means to detect the type of EVR comparison, and
intend to use
the dpkg rather than rpmvercmp in the future.
The interesting issues will be establishing rules for mixed
new vs. old
comparison. AFAIR, using the existing rpmvercmp when
presented
with new and old EVR is mostly a strict subset of dpkg EVR
behavior.
There is also the current issue that '-' is forbidden in
rpm Version:
and Release:, but that will be handled later, probably by
escaping
the V-R separator in RPMTAG_PROVIDEVERSION et al strings.
In other words, ignoring all non-alphabetic, non-digit
characters in
a dpkg
EVR is likely to compare exactly the same as what is used
currently
in rpm.
The rationale for doing so is to remove Yet Another Silly
Difference
between dpkg and rpm.
Expect patches this weekend, the coding is not hard at all.
Enjoy!
73 de Jeff
_______________________________________________
Rpm-devel mailing list
Rpm-devel lists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-devel
a>
|