Re: Debian version numbers and strcmp()

2009-01-27 Thread Ian Jackson
Adeodato Simó writes ("Debian version numbers and strcmp()"): > I'd like to hear from members of this list what they think about the > following issue: I just noticed that to determine whether two Debian > versions are equal, one can't use strcmp() or similar,

Re: Debian version numbers and strcmp()

2009-01-25 Thread Don Armstrong
On Sun, 25 Jan 2009, Roger Leigh wrote: > Having a canonical implementation of the version comparison in a C > library would be super, since all the other languages could just > wrap it. The implementation I wrote for debbugs is a fallback for when libapt-pkg-perl isn't around; I think any languag

Re: Debian version numbers and strcmp()

2009-01-25 Thread Roger Leigh
On Fri, Jan 23, 2009 at 12:40:46PM +0200, Guillem Jover wrote: > Hi! > > On Thu, 2009-01-22 at 15:19:40 +0100, Adeodato Simó wrote: > > I'd like to hear from members of this list what they think about the > > following issue: I just noticed that to determine whether two Debian > > versions are equ

Re: Debian version numbers and strcmp()

2009-01-23 Thread Guillem Jover
Hi! On Thu, 2009-01-22 at 15:19:40 +0100, Adeodato Simó wrote: > I'd like to hear from members of this list what they think about the > following issue: I just noticed that to determine whether two Debian > versions are equal, one can't use strcmp() or similar, and must > implement the full compar

Re: Debian version numbers and strcmp()

2009-01-23 Thread Adeodato Simó
Thanks everybody for their responses. I'll learn to live with this (small) unhappiness. Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org The first step on the road to wisdom is the admis

Re: Debian version numbers and strcmp()

2009-01-23 Thread Don Armstrong
On Thu, 22 Jan 2009, Adeodato Simó wrote: > I'd like to hear from members of this list what they think about the > following issue: I just noticed that to determine whether two Debian > versions are equal, one can't use strcmp() or similar, and must > implement the full comparison algorithm. For ex

Re: Debian version numbers and strcmp()

2009-01-22 Thread Raphael Hertzog
On Thu, 22 Jan 2009, Russ Allbery wrote: > them), but I've only thought about it for a couple of minutes. It would, > however, change the current sort order by making 0.1 > 0.02, whereas > currently 0.1 < 0.02. I haven't checked to see if that would break > anything in the archive. I'm pretty su

Re: Debian version numbers and strcmp()

2009-01-22 Thread Russ Allbery
Adeodato Simó writes: > I'd like to hear from members of this list what they think about the > following issue: I just noticed that to determine whether two Debian > versions are equal, one can't use strcmp() or similar, and must > implement the full comparison algorithm. For example, 0.9 and 0.0

Debian version numbers and strcmp()

2009-01-22 Thread Adeodato Simó
Hello, I'd like to hear from members of this list what they think about the following issue: I just noticed that to determine whether two Debian versions are equal, one can't use strcmp() or similar, and must implement the full comparison algorithm. For example, 0.9 and 0.09 are the same version a

Re: Debian version numbers and strcmp()

2009-01-22 Thread Eugene V. Lyubimkin
Adeodato Simó wrote: > I'm tempted to say this is rather unfortunate: I always believed our > version numbers to be comparable for *equality* using standard tools, [snip] > Is there a reason that would > advise against changing it? Probably, telling that 0.9 != 0.09 would break current dpkg/apt com