RPM Community Forums

Mailing List Message of <rpm-devel>

Implementing EVR comparisons using *RE's ?

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 06 May 2009 - 20:39:52 CEST
Message-id: <84036456-066C-413D-8C11-1CD6C49B0108@mac.com>
While muddling through how to add rpmvercmp to JavaScript,
I find myself thinking Yet Again about how silly and feeble
and fragile and deficient rpmvercmp actually is.

So I ask the question:
	Can *RE patterns that match newer but not older
	packages be devised?

The general answer is boring: No, of course not.

But %track (and /usr/lib/rpm/vcheck.pl) are based
on *RE's and Get It Right! (i.e. detecting newer
upstream versions of tarballs) sufficiently often
that newer EVR comnparisons might be done with *RE's
rather than the usual slice-n-dice of alpha/digit/other
character sets and using strcmp(3).

Perhaps a better (as in easier to answer) question is
	How many types of versioning pattern templates would
	need to recognized for rpmvercmp to be done
	using *RE's instead?

73 de Jeff
Received on Wed May 6 20:40:17 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.