List Info

Thread: Using dpkg's EVR comparison instead of rpmvercmp




Using dpkg's EVR comparison instead of rpmvercmp
user name
2006-08-25 19:45:22
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-devellists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-devel
Using dpkg's EVR comparison instead of rpmvercmp
user name
2006-08-25 20:03:19
On Friday, 25 August 2006, at 15:45:22 (-0400),
Jeff Johnson wrote:

> As warned a couple months back (March?) on this list, I
am going to
> be changing rpmvercmp to call through a vector instead.

March nothing.  You've been talking about doing this for
over a year,
at least to those of us who listened.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/ 
<mejkainx.org>
n + 1, Inc., http://www.nplus1.net/    
  Author, Eterm (www.eterm.org)
------------------------------------------------------------
-----------
 "Don't you see what Watley is after?  Total
joke-telling immunity!
  He's already got the big two religions covered.  If he
ever gets
  Polish citizenship, there'll be no stopping him!" 
-- Jerry Seinfeld
_______________________________________________
Rpm-devel mailing list
Rpm-devellists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )