[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: RPM version comparison algorithm



On Sat, Jan 01, 2005 at 11:32:41PM +0100, Jos Vos wrote:
> Hi,
> 
> For some reason I thought the rpm version/release comparison was done
> by comparing the dotted components, but this does not seem to be
> the case.  For example:
> 
>   pkg-1.0-3 < pkg-1.0-3A
> 
> but
> 
>   pkg-1.0-3.B > pkg-1.0-3A.B
> 
> To me, this looks strange.  What is the explanation for this?

A change between alphabetic characters and numeric ones is considered as two
components as if there was a dot in between.

Thus you have for your first example 3 < 3.A and for the second one 3.B >
3.A.B.

Robert

-- 
Robert Schiele			Tel.: +49-621-181-2214
Dipl.-Wirtsch.informatiker	mailto:rschiele@uni-mannheim.de

Attachment: pgp00000.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]