Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2000 10:46:51 +0200
From:      Samuel Tardieu <sam@inf.enst.fr>
To:        Satoshi - Ports Wraith - Asami <asami@FreeBSD.org>
Cc:        Bill Fumerola <billf@chc-chimes.com>, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/18030: [PATCH] pkg_version thinks 4.04 > 4.1
Message-ID:  <2000-04-19-10-46-51%2Btrackit%2Bsam@inf.enst.fr>
In-Reply-To: <vqcitxf2r6k.fsf@silvia.hip.berkeley.edu>; from asami@FreeBSD.org on Tue, Apr 18, 2000 at 11:35:15AM -0700
References:  <200004170700.AAA55638@freefall.freebsd.org> <20000417115303.J397@jade.chc-chimes.com> <2000-04-17-17-55-43%2Btrackit%2Bsam@inf.enst.fr> <vqcitxf2r6k.fsf@silvia.hip.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 18/04, Satoshi - Ports Wraith - Asami wrote:
|  * You missed the point: this is the current situation (which works fine with
|  * a2ps and not for the other software, as 4.04 is less recent than 4.1,
|  * ignoring leading zeros (or doing a numerical comparaison, which holds
|  * the same result) gets it wrong).
| 
| How about doing a numerical comparison iif the period-delimited
| component is a whole number (i.e., ([1-9][0-9]*|0)).

With with term of the comparaison? One of the two or both? You can have:

  4.04 < 4.09  [1a]
  4.09 < 4.2   [2a]
  4.2  > 4.11  [3a]

for one software, and for another software

  4.4 < 4.9    [1b]
  4.9 > 4.2    [2b]
  4.2 < 4.11   [3b]

If I give you 1a and 2a, you will be able to guess what 3a should be. Same
thing for 3b from 1b and 2b. If I give you only 1a or 1b (which look the
same), you will not be able to say for sure which one is right, as there is
no common solution, it just depends on the software versioning scheme which
is not contained in the version itself.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2000-04-19-10-46-51%2Btrackit%2Bsam>